| Package | Description |
|---|---|
| org.testng |
| Modifier and Type | Method and Description |
|---|---|
static void |
Assert.assertThrows(Assert.ThrowingRunnable runnable)
Asserts that
runnable throws an exception when invoked. |
static <T extends java.lang.Throwable> |
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> |
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. |