Uses of Interface
org.testng.Assert.ThrowingRunnable
Packages that use Assert.ThrowingRunnable
-
Uses of Assert.ThrowingRunnable in org.testng
Methods in org.testng with parameters of type Assert.ThrowingRunnableModifier and TypeMethodDescriptionstatic <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.