public class ExpectException extends Statement
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. |
public ExpectException(Statement next, java.lang.Class<? extends java.lang.Throwable> expected)