Changed Methods |
void checkExceptionExpectations(Throwable )
|
Change in signature from Exception to Throwable .
|
Does the donkey work of checking (verifying) that the
Throwable that was thrown in the body of the test is
an instance of the .getExpectedException() class (or an
instance of a subclass). |
String createMessageForWrongThrownExceptionType(Throwable )
|
Change in signature from Exception to Throwable .
|
Creates the failure message used if the wrong type
of java.lang.Throwable is thrown in the body of the test. |
Throwable getActualException()
|
Change in return type from Exception to Throwable .
|
Expose the actual exception thrown from .test, if any. |
Class<Throwable> getExpectedException()
|
Change in return type from Class to Class<Throwable> .
|
Return the java.lang.Throwable expected to be thrown during
the execution of the surrounding test. |
void test()
|
Change in exceptions thrown from java.lang.Exception to java.lang.Throwable .
|
Subclass must override this {@code abstract} method and
provide the test logic. |