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