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, java.lang.Class<? extends java.lang.Throwable> expected)
           
 
Method Summary
 void evaluate()
          Run the action, throwing a Throwable if anything goes wrong.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpectException

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

evaluate

public void evaluate()
              throws java.lang.Exception
Description copied from class: Statement
Run the action, throwing a Throwable if anything goes wrong.

Specified by:
evaluate in class Statement
Throws:
java.lang.Exception