Class ExpectException
- java.lang.Object
-
- org.junit.runners.model.Statement
-
- org.junit.internal.runners.statements.ExpectException
-
public class ExpectException extends Statement
-
-
Constructor Summary
Constructors Constructor Description ExpectException(Statement next, java.lang.Class<? extends java.lang.Throwable> expected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evaluate()
Run the action, throwing aThrowable
if anything goes wrong.
-