public class ExpectException extends Statement
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<? extends java.lang.Throwable> |
expected |
private Statement |
next |
| Constructor and Description |
|---|
ExpectException(Statement next,
java.lang.Class<? extends java.lang.Throwable> expected) |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate()
Run the action, throwing a
Throwable if anything goes wrong. |