|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| 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
|
Assert.assertThrows(Class<T> expectedThrowable,
ThrowingRunnable runnable)
Asserts that runnable throws an exception of type expectedThrowable when
executed. |
|
static
|
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. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||