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 thatrunnablethrows an exception of typethrowableClasswhen executed.static <T extends Throwable>
voidAssert.assertThrows(String message, Class<T> throwableClass, Assert.ThrowingRunnable runnable) Asserts thatrunnablethrows an exception of typethrowableClasswhen executed.static voidAssert.assertThrows(Assert.ThrowingRunnable runnable) Asserts thatrunnablethrows an exception when invoked.static <T extends Throwable>
TAssert.expectThrows(Class<T> throwableClass, Assert.ThrowingRunnable runnable) Asserts thatrunnablethrows an exception of typethrowableClasswhen executed and returns the exception.static <T extends Throwable>
TAssert.expectThrows(String message, Class<T> throwableClass, Assert.ThrowingRunnable runnable) Asserts thatrunnablethrows an exception of typethrowableClasswhen executed and returns the exception.