Uses of Class
org.junit.runners.model.Statement
Packages that use Statement
-
Uses of Statement in org.junit.experimental.theories
Subclasses of Statement in org.junit.experimental.theoriesMethods in org.junit.experimental.theories that return StatementModifier and TypeMethodDescriptionTheories.methodBlock
(FrameworkMethod method) private Statement
Theories.TheoryAnchor.methodCompletesWithParameters
(FrameworkMethod method, Assignments complete, Object freshInstance) -
Uses of Statement in org.junit.internal.runners.statements
Subclasses of Statement in org.junit.internal.runners.statementsModifier and TypeClassDescriptionclass
class
class
class
class
class
Fields in org.junit.internal.runners.statements declared as StatementModifier and TypeFieldDescriptionprivate final Statement
ExpectException.next
private final Statement
RunAfters.next
private final Statement
RunBefores.next
private final Statement
FailOnTimeout.originalStatement
Methods in org.junit.internal.runners.statements with parameters of type StatementModifier and TypeMethodDescriptionBuilds aFailOnTimeout
instance using the values in this builder, wrapping the given statement.Constructors in org.junit.internal.runners.statements with parameters of type StatementModifierConstructorDescriptionExpectException
(Statement next, Class<? extends Throwable> expected) private
FailOnTimeout
(FailOnTimeout.Builder builder, Statement statement) FailOnTimeout
(Statement statement, long timeoutMillis) Deprecated.RunAfters
(Statement next, List<FrameworkMethod> afters, Object target) RunBefores
(Statement next, List<FrameworkMethod> befores, Object target) -
Uses of Statement in org.junit.rules
Subclasses of Statement in org.junit.rulesModifier and TypeClassDescriptionprivate class
class
Runs a collection of rules on a statement.Fields in org.junit.rules declared as StatementModifier and TypeFieldDescriptionprivate final Statement
ExpectedException.ExpectedExceptionStatement.next
private final Statement
RunRules.statement
Methods in org.junit.rules that return StatementModifier and TypeMethodDescriptionDisableOnDebug.apply
(Statement base, Description description) ExpectedException.apply
(Statement base, Description description) ExternalResource.apply
(Statement base, Description description) MethodRule.apply
(Statement base, FrameworkMethod method, Object target) Modifies the method-runningStatement
to implement an additional test-running rule.RuleChain.apply
(Statement base, Description description) Modifies the method-runningStatement
to implement this test-running rule.final Statement
Stopwatch.apply
(Statement base, Description description) TestRule.apply
(Statement base, Description description) Modifies the method-runningStatement
to implement this test-running rule.TestWatcher.apply
(Statement base, Description description) TestWatchman.apply
(Statement base, FrameworkMethod method, Object target) Deprecated.Timeout.apply
(Statement base, Description description) Verifier.apply
(Statement base, Description description) private static Statement
RunRules.applyAll
(Statement result, Iterable<TestRule> rules, Description description) protected Statement
Timeout.createFailOnTimeoutStatement
(Statement statement) Creates aStatement
that will run the givenstatement
, and timeout the operation based on the values configured in this rule.private Statement
Methods in org.junit.rules with parameters of type StatementModifier and TypeMethodDescriptionDisableOnDebug.apply
(Statement base, Description description) ExpectedException.apply
(Statement base, Description description) ExternalResource.apply
(Statement base, Description description) MethodRule.apply
(Statement base, FrameworkMethod method, Object target) Modifies the method-runningStatement
to implement an additional test-running rule.RuleChain.apply
(Statement base, Description description) Modifies the method-runningStatement
to implement this test-running rule.final Statement
Stopwatch.apply
(Statement base, Description description) TestRule.apply
(Statement base, Description description) Modifies the method-runningStatement
to implement this test-running rule.TestWatcher.apply
(Statement base, Description description) TestWatchman.apply
(Statement base, FrameworkMethod method, Object target) Deprecated.Timeout.apply
(Statement base, Description description) Verifier.apply
(Statement base, Description description) private static Statement
RunRules.applyAll
(Statement result, Iterable<TestRule> rules, Description description) protected Statement
Timeout.createFailOnTimeoutStatement
(Statement statement) Creates aStatement
that will run the givenstatement
, and timeout the operation based on the values configured in this rule.private Statement
Constructors in org.junit.rules with parameters of type StatementModifierConstructorDescriptionRunRules
(Statement base, Iterable<TestRule> rules, Description description) -
Uses of Statement in org.junit.runners
Methods in org.junit.runners that return StatementModifier and TypeMethodDescriptionRuleContainer.apply
(FrameworkMethod method, Description description, Object target, Statement statement) Applies all the rules ordered accordingly to the specifiedstatement
.protected Statement
ParentRunner.childrenInvoker
(RunNotifier notifier) Returns aStatement
: CallParentRunner.runChild(Object, RunNotifier)
on each object returned byParentRunner.getChildren()
(subject to any imposed filter and sort)protected Statement
ParentRunner.classBlock
(RunNotifier notifier) Constructs aStatement
to run all of the tests in the test class.protected Statement
BlockJUnit4ClassRunner.methodBlock
(FrameworkMethod method) Returns a Statement that, when executed, either returns normally ifmethod
passes, or throws an exception ifmethod
fails.protected Statement
BlockJUnit4ClassRunner.methodInvoker
(FrameworkMethod method, Object test) protected Statement
BlockJUnit4ClassRunner.possiblyExpectingExceptions
(FrameworkMethod method, Object test, Statement next) Returns aStatement
: ifmethod
's@Test
annotation has theTest.expected()
attribute, return normally only ifnext
throws an exception of the correct type, and throw an exception otherwise.protected Statement
ParentRunner.withAfterClasses
(Statement statement) Returns aStatement
: run all non-overridden@AfterClass
methods on this class and superclasses after executingstatement
; all AfterClass methods are always executed: exceptions thrown by previous steps are combined, if necessary, with exceptions from AfterClass methods into aMultipleFailureException
.protected Statement
BlockJUnit4ClassRunner.withAfters
(FrameworkMethod method, Object target, Statement statement) Returns aStatement
: run all non-overridden@After
methods on this class and superclasses before runningnext
; all After methods are always executed: exceptions thrown by previous steps are combined, if necessary, with exceptions from After methods into aMultipleFailureException
.protected Statement
ParentRunner.withBeforeClasses
(Statement statement) Returns aStatement
: run all non-overridden@BeforeClass
methods on this class and superclasses before executingstatement
; if any throws an Exception, stop execution and pass the exception on.protected Statement
BlockJUnit4ClassRunner.withBefores
(FrameworkMethod method, Object target, Statement statement) Returns aStatement
: run all non-overridden@Before
methods on this class and superclasses before runningnext
; if any throws an Exception, stop execution and pass the exception on.private Statement
ParentRunner.withClassRules
(Statement statement) protected final Statement
ParentRunner.withInterruptIsolation
(Statement statement) protected Statement
BlockJUnit4ClassRunner.withPotentialTimeout
(FrameworkMethod method, Object test, Statement next) Deprecated.private Statement
BlockJUnit4ClassRunner.withRules
(FrameworkMethod method, Object target, Statement statement) Methods in org.junit.runners with parameters of type StatementModifier and TypeMethodDescriptionRuleContainer.apply
(FrameworkMethod method, Description description, Object target, Statement statement) Applies all the rules ordered accordingly to the specifiedstatement
.protected Statement
BlockJUnit4ClassRunner.possiblyExpectingExceptions
(FrameworkMethod method, Object test, Statement next) Returns aStatement
: ifmethod
's@Test
annotation has theTest.expected()
attribute, return normally only ifnext
throws an exception of the correct type, and throw an exception otherwise.protected final void
ParentRunner.runLeaf
(Statement statement, Description description, RunNotifier notifier) Runs aStatement
that represents a leaf (aka atomic) test.protected Statement
ParentRunner.withAfterClasses
(Statement statement) Returns aStatement
: run all non-overridden@AfterClass
methods on this class and superclasses after executingstatement
; all AfterClass methods are always executed: exceptions thrown by previous steps are combined, if necessary, with exceptions from AfterClass methods into aMultipleFailureException
.protected Statement
BlockJUnit4ClassRunner.withAfters
(FrameworkMethod method, Object target, Statement statement) Returns aStatement
: run all non-overridden@After
methods on this class and superclasses before runningnext
; all After methods are always executed: exceptions thrown by previous steps are combined, if necessary, with exceptions from After methods into aMultipleFailureException
.protected Statement
ParentRunner.withBeforeClasses
(Statement statement) Returns aStatement
: run all non-overridden@BeforeClass
methods on this class and superclasses before executingstatement
; if any throws an Exception, stop execution and pass the exception on.protected Statement
BlockJUnit4ClassRunner.withBefores
(FrameworkMethod method, Object target, Statement statement) Returns aStatement
: run all non-overridden@Before
methods on this class and superclasses before runningnext
; if any throws an Exception, stop execution and pass the exception on.private Statement
ParentRunner.withClassRules
(Statement statement) protected final Statement
ParentRunner.withInterruptIsolation
(Statement statement) protected Statement
BlockJUnit4ClassRunner.withPotentialTimeout
(FrameworkMethod method, Object test, Statement next) Deprecated.private Statement
BlockJUnit4ClassRunner.withRules
(FrameworkMethod method, Object target, Statement statement) -
Uses of Statement in org.junit.runners.parameterized
Subclasses of Statement in org.junit.runners.parameterizedModifier and TypeClassDescriptionprivate class
private class
Methods in org.junit.runners.parameterized that return StatementModifier and TypeMethodDescriptionprotected Statement
BlockJUnit4ClassRunnerWithParameters.classBlock
(RunNotifier notifier) private Statement
BlockJUnit4ClassRunnerWithParameters.withAfterParams
(Statement statement) private Statement
BlockJUnit4ClassRunnerWithParameters.withBeforeParams
(Statement statement) Methods in org.junit.runners.parameterized with parameters of type StatementModifier and TypeMethodDescriptionprivate Statement
BlockJUnit4ClassRunnerWithParameters.withAfterParams
(Statement statement) private Statement
BlockJUnit4ClassRunnerWithParameters.withBeforeParams
(Statement statement) Constructors in org.junit.runners.parameterized with parameters of type StatementModifierConstructorDescription(package private)
RunAfterParams
(Statement next, List<FrameworkMethod> afters) (package private)
RunBeforeParams
(Statement next, List<FrameworkMethod> befores)
FailOnTimeout.builder()
instead.