org.junit.internal.runners.statements
Class ExpectException

java.lang.Object
  extended by org.junit.runners.model.Statement
      extended by org.junit.internal.runners.statements.ExpectException

public class ExpectException
extends Statement


Constructor Summary
ExpectException(Statement next, Class<? extends Throwable> expected)
           
 
Method Summary
 void evaluate()
          Run the action, throwing a Throwable if anything goes wrong.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpectException

public ExpectException(Statement next,
                       Class<? extends Throwable> expected)
Method Detail

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