Generated by
JDiff

Class org.springframework.test.AssertThrows

Removed Constructors
AssertThrows(Class) Create a new instance of the AssertThrows class.
AssertThrows(Class, String) Create a new instance of the AssertThrows class.
 

Added Constructors
AssertThrows(Class<Throwable>) Create a new instance of the {@code AssertThrows} class.
AssertThrows(Class<Throwable>, String) Create a new instance of the {@code AssertThrows} class.
 

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.