public class ExceptionNotThrownAssertionError extends AssertionError
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
See
Serializable . |
Constructor and Description |
---|
ExceptionNotThrownAssertionError(Class<E> clazz)
Use this constructor if neither an exception of the expected type nor
another exception is thrown.
|
ExceptionNotThrownAssertionError(Class<E> clazz,
Exception e)
Use this constructor if an exception of another than the expected type is
thrown.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
Serializable
.public ExceptionNotThrownAssertionError(Class<E> clazz)
E
- the type of the exception that is not thrown.clazz
- the type of the exception that is not thrown.public ExceptionNotThrownAssertionError(Class<E> clazz, Exception e)
E
- the type of the exception that is not thrown.clazz
- the type of the exception that is not thrown.e
- the exception that has been thrown instead of the expected
one.Copyright © 2014. All rights reserved.