Class Statement

java.lang.Object
org.junit.runners.model.Statement
Direct Known Subclasses:
ExpectedException.ExpectedExceptionStatement, ExpectException, Fail, FailOnTimeout, InvokeMethod, RunAfters, RunBefores, RunRules, Theories.TheoryAnchor

public abstract class Statement extends Object
Represents one or more actions to be taken at runtime in the course of running a JUnit test suite.
Since:
4.5
  • Constructor Details

    • Statement

      public Statement()
  • Method Details

    • evaluate

      public abstract void evaluate() throws Throwable
      Run the action, throwing a Throwable if anything goes wrong.
      Throws:
      Throwable