org.junit.internal.runners.statements
Class ExpectException
java.lang.Object
org.junit.runners.model.Statement
org.junit.internal.runners.statements.ExpectException
public class ExpectException
- extends Statement
Method Summary |
void |
evaluate()
Run the action, throwing a Throwable if anything goes wrong. |
ExpectException
public ExpectException(Statement next,
Class<? extends Throwable> expected)
evaluate
public void evaluate()
throws Exception
- Description copied from class:
Statement
- Run the action, throwing a
Throwable
if anything goes wrong.
- Specified by:
evaluate
in class Statement
- Throws:
Exception