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 Throwable> |
Assert.assertThrows(Class<T> throwableClass,
Assert.ThrowingRunnable runnable)
Asserts that
runnable throws an exception of type throwableClass when
executed. |
static <T extends Throwable> |
Assert.expectThrows(Class<T> throwableClass,
Assert.ThrowingRunnable runnable)
Asserts that
runnable throws an exception of type throwableClass when
executed and returns the exception. |
Copyright © 2024. All rights reserved.