ExpectedException
A type representing the expected exceptional behavior in a test.
Author
Dustin Glaser
Parameters
<T>
the type of the expected exception
Functions
Link copied to clipboard
public static ExpectedObject<T> of<T>(T object, Predicate<T> test, Function<String, String> formatter)
Returns an expected behavior where the expected object is described with the given object.
public static ExpectedException<T> of<T extends Exception>(Class<T> clazz, Predicate<Class<T>> classTest, Predicate<T> exceptionTest, Function<String, String> formatter)
Returns an instance representing an expected exceptional behavior.
Link copied to clipboard
Returns a string representation of the expected behavior using the given stringifier to make the behavior human-readable.