static <T extends java.lang.Throwable> void |
Assert.assertThrows(java.lang.Class<T> throwableClass,
Assert.ThrowingRunnable runnable) |
Asserts that runnable throws an exception of type throwableClass when executed.
|
static <T extends java.lang.Throwable> void |
Assert.assertThrows(java.lang.String message,
java.lang.Class<T> throwableClass,
Assert.ThrowingRunnable runnable) |
Asserts that runnable throws an exception of type throwableClass when executed.
|
static void |
Assert.assertThrows(Assert.ThrowingRunnable runnable) |
Asserts that runnable throws an exception when invoked.
|
static <T extends java.lang.Throwable> T |
Assert.expectThrows(java.lang.Class<T> throwableClass,
Assert.ThrowingRunnable runnable) |
Asserts that runnable throws an exception of type throwableClass when executed
and returns the exception.
|
static <T extends java.lang.Throwable> T |
Assert.expectThrows(java.lang.String message,
java.lang.Class<T> throwableClass,
Assert.ThrowingRunnable runnable) |
Asserts that runnable throws an exception of type throwableClass when executed
and returns the exception.
|