Uses of Class
org.junit.runners.model.Statement
-
Packages that use Statement Package Description org.junit.experimental.theories org.junit.internal.runners.statements org.junit.rules org.junit.runners Provides standardRunner
implementations.org.junit.runners.parameterized -
-
Uses of Statement in org.junit.experimental.theories
Subclasses of Statement in org.junit.experimental.theories Modifier and Type Class Description static class
Theories.TheoryAnchor
Methods in org.junit.experimental.theories that return Statement Modifier and Type Method Description Statement
Theories. methodBlock(FrameworkMethod method)
private Statement
Theories.TheoryAnchor. methodCompletesWithParameters(FrameworkMethod method, Assignments complete, java.lang.Object freshInstance)
-
Uses of Statement in org.junit.internal.runners.statements
Subclasses of Statement in org.junit.internal.runners.statements Modifier and Type Class Description class
ExpectException
class
Fail
class
FailOnTimeout
class
InvokeMethod
class
RunAfters
class
RunBefores
Fields in org.junit.internal.runners.statements declared as Statement Modifier and Type Field Description private Statement
ExpectException. next
private Statement
RunAfters. next
private Statement
RunBefores. next
private Statement
FailOnTimeout. originalStatement
Methods in org.junit.internal.runners.statements with parameters of type Statement Modifier and Type Method Description FailOnTimeout
FailOnTimeout.Builder. build(Statement statement)
Builds aFailOnTimeout
instance using the values in this builder, wrapping the given statement.Constructors in org.junit.internal.runners.statements with parameters of type Statement Constructor Description ExpectException(Statement next, java.lang.Class<? extends java.lang.Throwable> expected)
FailOnTimeout(FailOnTimeout.Builder builder, Statement statement)
FailOnTimeout(Statement statement, long timeoutMillis)
Deprecated.useFailOnTimeout.builder()
instead.RunAfters(Statement next, java.util.List<FrameworkMethod> afters, java.lang.Object target)
RunBefores(Statement next, java.util.List<FrameworkMethod> befores, java.lang.Object target)
-
Uses of Statement in org.junit.rules
Subclasses of Statement in org.junit.rules Modifier and Type Class Description private class
ExpectedException.ExpectedExceptionStatement
class
RunRules
Runs a collection of rules on a statement.Fields in org.junit.rules declared as Statement Modifier and Type Field Description private Statement
ExpectedException.ExpectedExceptionStatement. next
private Statement
RunRules. statement
Methods in org.junit.rules that return Statement Modifier and Type Method Description Statement
DisableOnDebug. apply(Statement base, Description description)
Statement
ExpectedException. apply(Statement base, Description description)
Statement
ExternalResource. apply(Statement base, Description description)
Statement
MethodRule. apply(Statement base, FrameworkMethod method, java.lang.Object target)
Modifies the method-runningStatement
to implement an additional test-running rule.Statement
RuleChain. apply(Statement base, Description description)
Modifies the method-runningStatement
to implement this test-running rule.Statement
Stopwatch. apply(Statement base, Description description)
Statement
TestRule. apply(Statement base, Description description)
Modifies the method-runningStatement
to implement this test-running rule.Statement
TestWatcher. apply(Statement base, Description description)
Statement
TestWatchman. apply(Statement base, FrameworkMethod method, java.lang.Object target)
Deprecated.Statement
Timeout. apply(Statement base, Description description)
Statement
Verifier. apply(Statement base, Description description)
private static Statement
RunRules. applyAll(Statement result, java.lang.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
ExternalResource. statement(Statement base)
Methods in org.junit.rules with parameters of type Statement Modifier and Type Method Description Statement
DisableOnDebug. apply(Statement base, Description description)
Statement
ExpectedException. apply(Statement base, Description description)
Statement
ExternalResource. apply(Statement base, Description description)
Statement
MethodRule. apply(Statement base, FrameworkMethod method, java.lang.Object target)
Modifies the method-runningStatement
to implement an additional test-running rule.Statement
RuleChain. apply(Statement base, Description description)
Modifies the method-runningStatement
to implement this test-running rule.Statement
Stopwatch. apply(Statement base, Description description)
Statement
TestRule. apply(Statement base, Description description)
Modifies the method-runningStatement
to implement this test-running rule.Statement
TestWatcher. apply(Statement base, Description description)
Statement
TestWatchman. apply(Statement base, FrameworkMethod method, java.lang.Object target)
Deprecated.Statement
Timeout. apply(Statement base, Description description)
Statement
Verifier. apply(Statement base, Description description)
private static Statement
RunRules. applyAll(Statement result, java.lang.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
ExternalResource. statement(Statement base)
Constructors in org.junit.rules with parameters of type Statement Constructor Description ExpectedExceptionStatement(Statement base)
RunRules(Statement base, java.lang.Iterable<TestRule> rules, Description description)
-
Uses of Statement in org.junit.runners
Methods in org.junit.runners that return Statement Modifier and Type Method Description 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, java.lang.Object test)
protected Statement
BlockJUnit4ClassRunner. possiblyExpectingExceptions(FrameworkMethod method, java.lang.Object test, Statement next)
Returns aStatement
: ifmethod
's@Test
annotation has theexpecting
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 before 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, java.lang.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, java.lang.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)
private Statement
BlockJUnit4ClassRunner. withMethodRules(FrameworkMethod method, java.util.List<TestRule> testRules, java.lang.Object target, Statement result)
protected Statement
BlockJUnit4ClassRunner. withPotentialTimeout(FrameworkMethod method, java.lang.Object test, Statement next)
Deprecated.private Statement
BlockJUnit4ClassRunner. withRules(FrameworkMethod method, java.lang.Object target, Statement statement)
private Statement
BlockJUnit4ClassRunner. withTestRules(FrameworkMethod method, java.util.List<TestRule> testRules, Statement statement)
Methods in org.junit.runners with parameters of type Statement Modifier and Type Method Description protected Statement
BlockJUnit4ClassRunner. possiblyExpectingExceptions(FrameworkMethod method, java.lang.Object test, Statement next)
Returns aStatement
: ifmethod
's@Test
annotation has theexpecting
attribute, return normally only ifnext
throws an exception of the correct type, and throw an exception otherwise.protected 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 before 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, java.lang.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, java.lang.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)
private Statement
BlockJUnit4ClassRunner. withMethodRules(FrameworkMethod method, java.util.List<TestRule> testRules, java.lang.Object target, Statement result)
protected Statement
BlockJUnit4ClassRunner. withPotentialTimeout(FrameworkMethod method, java.lang.Object test, Statement next)
Deprecated.private Statement
BlockJUnit4ClassRunner. withRules(FrameworkMethod method, java.lang.Object target, Statement statement)
private Statement
BlockJUnit4ClassRunner. withTestRules(FrameworkMethod method, java.util.List<TestRule> testRules, Statement statement)
-
Uses of Statement in org.junit.runners.parameterized
Methods in org.junit.runners.parameterized that return Statement Modifier and Type Method Description protected Statement
BlockJUnit4ClassRunnerWithParameters. classBlock(RunNotifier notifier)
-