Uses of Interface
org.testng.Assert.ThrowingRunnable
-
Packages that use Assert.ThrowingRunnable Package Description org.testng -
-
Uses of Assert.ThrowingRunnable in org.testng
Methods in org.testng with parameters of type Assert.ThrowingRunnable Modifier and Type Method Description static <T extends Throwable>
voidAssert. assertThrows(Class<T> throwableClass, Assert.ThrowingRunnable runnable)
Asserts thatrunnable
throws an exception of typethrowableClass
when executed.static void
Assert. assertThrows(Assert.ThrowingRunnable runnable)
Asserts thatrunnable
throws an exception when invoked.static <T extends Throwable>
TAssert. expectThrows(Class<T> throwableClass, Assert.ThrowingRunnable runnable)
Asserts thatrunnable
throws an exception of typethrowableClass
when executed and returns the exception.
-