
Use this to run an Exception test
You should create a test method that throws the exception you want to test
And call this to test the exception is indeed thrown
ie: checkThrowsException(java.lang.NullPointerException.class,"myExceptionTestMethod",null);

Use this to run an Exception test
You should create a test method that throws the exception you want to test
And call this to test the exception is indeed thrown
ie: checkThrowsException(java.lang.NullPointerException.class,"myExceptionTestMethod",null);
Returns:
Parameters:
-
exceptionType - Expected result Exception Class: ie: java.lang.NullPointerException
-
method - Name of the test method that should throw the exception (to be tested)
-
args - Arguments of the test method (or null if none)
Throws:
-
JOTTestException -