Uses of Class
org.junit.runners.model.Statement
Packages that use Statement | |
---|---|
org.junit.experimental.theories | |
org.junit.rules | |
org.junit.runners | Provides standard Runner implementations. |
org.junit.runners.parameterized |
Uses of Statement in org.junit.experimental.theories |
---|
Subclasses of Statement in org.junit.experimental.theories | |
---|---|
static class |
Theories.TheoryAnchor |
Methods in org.junit.experimental.theories that return Statement | |
---|---|
Statement |
Theories.methodBlock(FrameworkMethod method) |
Uses of Statement in org.junit.rules |
---|
Subclasses of Statement in org.junit.rules | |
---|---|
class |
RunRules Runs a collection of rules on a statement. |
Methods in org.junit.rules that return Statement | |
---|---|
Statement |
TestWatcher.apply(Statement base, Description description) |
Statement |
ExternalResource.apply(Statement base, Description description) |
Statement |
ExpectedException.apply(Statement base, Description description) |
Statement |
DisableOnDebug.apply(Statement base, Description description) |
Statement |
Timeout.apply(Statement base, Description description) |
Statement |
RuleChain.apply(Statement base, Description description) Modifies the method-running Statement to implement this test-running rule. |
Statement |
Stopwatch.apply(Statement base, Description description) |
Statement |
Verifier.apply(Statement base, Description description) |
Statement |
TestRule.apply(Statement base, Description description) Modifies the method-running Statement to implement this test-running rule. |
Statement |
MethodRule.apply(Statement base, FrameworkMethod method, Object target) Modifies the method-running Statement to implement an additional test-running rule. |
Statement |
TestWatchman.apply(Statement base, FrameworkMethod method, Object target) Deprecated. |
protected Statement |
Timeout.createFailOnTimeoutStatement(Statement statement) Creates a Statement that will run the given statement , and timeout the operation based on the values configured in this rule. |
Methods in org.junit.rules with parameters of type Statement | |
---|---|
Statement |
TestWatcher.apply(Statement base, Description description) |
Statement |
ExternalResource.apply(Statement base, Description description) |
Statement |
ExpectedException.apply(Statement base, Description description) |
Statement |
DisableOnDebug.apply(Statement base, Description description) |
Statement |
Timeout.apply(Statement base, Description description) |
Statement |
RuleChain.apply(Statement base, Description description) Modifies the method-running Statement to implement this test-running rule. |
Statement |
Stopwatch.apply(Statement base, Description description) |
Statement |
Verifier.apply(Statement base, Description description) |
Statement |
TestRule.apply(Statement base, Description description) Modifies the method-running Statement to implement this test-running rule. |
Statement |
MethodRule.apply(Statement base, FrameworkMethod method, Object target) Modifies the method-running Statement to implement an additional test-running rule. |
Statement |
TestWatchman.apply(Statement base, FrameworkMethod method, Object target) Deprecated. |
protected Statement |
Timeout.createFailOnTimeoutStatement(Statement statement) Creates a Statement that will run the given statement , and timeout the operation based on the values configured in this rule. |
Constructors in org.junit.rules with parameters of type Statement | |
---|---|
RunRules(Statement base, Iterable<TestRule> rules, Description description) |
Uses of Statement in org.junit.runners |
---|
Methods in org.junit.runners that return Statement | |
---|---|
protected Statement |
ParentRunner.childrenInvoker(RunNotifier notifier) Returns a Statement : Call ParentRunner.runChild(Object, RunNotifier) on each object returned by ParentRunner.getChildren() (subject to any imposed filter and sort) |
protected Statement |
ParentRunner.classBlock(RunNotifier notifier) Constructs a Statement 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 if method passes, or throws an exception if method fails. |
protected Statement |
BlockJUnit4ClassRunner.methodInvoker(FrameworkMethod method, Object test) Returns a Statement that invokes method on test |
protected Statement |
BlockJUnit4ClassRunner.possiblyExpectingExceptions(FrameworkMethod method, Object test, Statement next) Returns a Statement : if method 's @Test annotation has the Test.expected() attribute, return normally only if next throws an exception of the correct type, and throw an exception otherwise. |
protected Statement |
ParentRunner.withAfterClasses(Statement statement) Returns a Statement : run all non-overridden @AfterClass methods on this class and superclasses after executing statement ; all AfterClass methods are always executed: exceptions thrown by previous steps are combined, if necessary, with exceptions from AfterClass methods into a MultipleFailureException . |
protected Statement |
BlockJUnit4ClassRunner.withAfters(FrameworkMethod method, Object target, Statement statement) Returns a Statement : run all non-overridden @After methods on this class and superclasses before running next ; all After methods are always executed: exceptions thrown by previous steps are combined, if necessary, with exceptions from After methods into a MultipleFailureException . |
protected Statement |
ParentRunner.withBeforeClasses(Statement statement) Returns a Statement : run all non-overridden @BeforeClass methods on this class and superclasses before executing statement ; if any throws an Exception, stop execution and pass the exception on. |
protected Statement |
BlockJUnit4ClassRunner.withBefores(FrameworkMethod method, Object target, Statement statement) Returns a Statement : run all non-overridden @Before methods on this class and superclasses before running next ; if any throws an Exception, stop execution and pass the exception on. |
protected Statement |
ParentRunner.withInterruptIsolation(Statement statement) |
protected Statement |
BlockJUnit4ClassRunner.withPotentialTimeout(FrameworkMethod method, Object test, Statement next) Deprecated. |
Methods in org.junit.runners with parameters of type Statement | |
---|---|
protected Statement |
BlockJUnit4ClassRunner.possiblyExpectingExceptions(FrameworkMethod method, Object test, Statement next) Returns a Statement : if method 's @Test annotation has the Test.expected() attribute, return normally only if next throws an exception of the correct type, and throw an exception otherwise. |
protected void |
ParentRunner.runLeaf(Statement statement, Description description, RunNotifier notifier) Runs a Statement that represents a leaf (aka atomic) test. |
protected Statement |
ParentRunner.withAfterClasses(Statement statement) Returns a Statement : run all non-overridden @AfterClass methods on this class and superclasses after executing statement ; all AfterClass methods are always executed: exceptions thrown by previous steps are combined, if necessary, with exceptions from AfterClass methods into a MultipleFailureException . |
protected Statement |
BlockJUnit4ClassRunner.withAfters(FrameworkMethod method, Object target, Statement statement) Returns a Statement : run all non-overridden @After methods on this class and superclasses before running next ; all After methods are always executed: exceptions thrown by previous steps are combined, if necessary, with exceptions from After methods into a MultipleFailureException . |
protected Statement |
ParentRunner.withBeforeClasses(Statement statement) Returns a Statement : run all non-overridden @BeforeClass methods on this class and superclasses before executing statement ; if any throws an Exception, stop execution and pass the exception on. |
protected Statement |
BlockJUnit4ClassRunner.withBefores(FrameworkMethod method, Object target, Statement statement) Returns a Statement : run all non-overridden @Before methods on this class and superclasses before running next ; if any throws an Exception, stop execution and pass the exception on. |
protected Statement |
ParentRunner.withInterruptIsolation(Statement statement) |
protected Statement |
BlockJUnit4ClassRunner.withPotentialTimeout(FrameworkMethod method, Object test, Statement next) Deprecated. |
Uses of Statement in org.junit.runners.parameterized |
---|
Methods in org.junit.runners.parameterized that return Statement | |
---|---|
protected Statement |
BlockJUnit4ClassRunnerWithParameters.classBlock(RunNotifier notifier) |