public class MoreAsserts extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MoreAsserts.ThrowingRunnable |
Modifier and Type | Method and Description |
---|---|
static <T extends Throwable> |
assertThrows(Class<T> expected,
MoreAsserts.ThrowingRunnable r)
Simple version of assertThrows that will be introduced in JUnit 4.13.
|
public static <T extends Throwable> T assertThrows(Class<T> expected, MoreAsserts.ThrowingRunnable r)
expected
- Expected throwable classr
- Runnable that is expected to throw an exception.Copyright © 2019 Eclipse JGit Project. All rights reserved.