Uses of Interface
org.junit.function.ThrowingRunnable

Packages that use ThrowingRunnable
org.junit Provides JUnit core classes and annotations. 
org.junit.rules   
 

Uses of ThrowingRunnable in org.junit
 

Methods in org.junit with parameters of type ThrowingRunnable
static
<T extends Throwable>
T
Assert.assertThrows(Class<T> expectedThrowable, ThrowingRunnable runnable)
          Asserts that runnable throws an exception of type expectedThrowable when executed.
static
<T extends Throwable>
T
Assert.assertThrows(String message, Class<T> expectedThrowable, ThrowingRunnable runnable)
          Asserts that runnable throws an exception of type expectedThrowable when executed.
 

Uses of ThrowingRunnable in org.junit.rules
 

Methods in org.junit.rules with parameters of type ThrowingRunnable
 void ErrorCollector.checkThrows(Class<? extends Throwable> expectedThrowable, ThrowingRunnable runnable)
          Adds a failure to the table if runnable does not throw an exception of type expectedThrowable when executed.
 



Copyright © 2002–2021 JUnit. All rights reserved.