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 Statement -
Uses of Statement in org.junit.internal.runners.statements
Subclasses of Statement in org.junit.internal.runners.statementsModifier and TypeClassDescriptionclassclassclassclassclassclassMethods in org.junit.internal.runners.statements with parameters of type StatementModifier and TypeMethodDescriptionBuilds aFailOnTimeoutinstance 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) 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.rulesMethods 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-runningStatementto implement an additional test-running rule.RuleChain.apply(Statement base, Description description) Modifies the method-runningStatementto implement this test-running rule.final StatementStopwatch.apply(Statement base, Description description) TestRule.apply(Statement base, Description description) Modifies the method-runningStatementto 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) protected StatementTimeout.createFailOnTimeoutStatement(Statement statement) Creates aStatementthat will run the givenstatement, and timeout the operation based on the values configured in this rule.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-runningStatementto implement an additional test-running rule.RuleChain.apply(Statement base, Description description) Modifies the method-runningStatementto implement this test-running rule.final StatementStopwatch.apply(Statement base, Description description) TestRule.apply(Statement base, Description description) Modifies the method-runningStatementto 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) protected StatementTimeout.createFailOnTimeoutStatement(Statement statement) Creates aStatementthat will run the givenstatement, and timeout the operation based on the values configured in this rule.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 TypeMethodDescriptionprotected StatementParentRunner.childrenInvoker(RunNotifier notifier) Returns aStatement: CallParentRunner.runChild(Object, RunNotifier)on each object returned byParentRunner.getChildren()(subject to any imposed filter and sort)protected StatementParentRunner.classBlock(RunNotifier notifier) Constructs aStatementto run all of the tests in the test class.protected StatementBlockJUnit4ClassRunner.methodBlock(FrameworkMethod method) Returns a Statement that, when executed, either returns normally ifmethodpasses, or throws an exception ifmethodfails.protected StatementBlockJUnit4ClassRunner.methodInvoker(FrameworkMethod method, Object test) protected StatementBlockJUnit4ClassRunner.possiblyExpectingExceptions(FrameworkMethod method, Object test, Statement next) Returns aStatement: ifmethod's@Testannotation has theTest.expected()attribute, return normally only ifnextthrows an exception of the correct type, and throw an exception otherwise.protected StatementParentRunner.withAfterClasses(Statement statement) Returns aStatement: run all non-overridden@AfterClassmethods 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 StatementBlockJUnit4ClassRunner.withAfters(FrameworkMethod method, Object target, Statement statement) Returns aStatement: run all non-overridden@Aftermethods 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 StatementParentRunner.withBeforeClasses(Statement statement) Returns aStatement: run all non-overridden@BeforeClassmethods on this class and superclasses before executingstatement; if any throws an Exception, stop execution and pass the exception on.protected StatementBlockJUnit4ClassRunner.withBefores(FrameworkMethod method, Object target, Statement statement) Returns aStatement: run all non-overridden@Beforemethods on this class and superclasses before runningnext; if any throws an Exception, stop execution and pass the exception on.protected final StatementParentRunner.withInterruptIsolation(Statement statement) protected StatementBlockJUnit4ClassRunner.withPotentialTimeout(FrameworkMethod method, Object test, Statement next) Deprecated.Methods in org.junit.runners with parameters of type StatementModifier and TypeMethodDescriptionprotected StatementBlockJUnit4ClassRunner.possiblyExpectingExceptions(FrameworkMethod method, Object test, Statement next) Returns aStatement: ifmethod's@Testannotation has theTest.expected()attribute, return normally only ifnextthrows an exception of the correct type, and throw an exception otherwise.protected final voidParentRunner.runLeaf(Statement statement, Description description, RunNotifier notifier) Runs aStatementthat represents a leaf (aka atomic) test.protected StatementParentRunner.withAfterClasses(Statement statement) Returns aStatement: run all non-overridden@AfterClassmethods 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 StatementBlockJUnit4ClassRunner.withAfters(FrameworkMethod method, Object target, Statement statement) Returns aStatement: run all non-overridden@Aftermethods 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 StatementParentRunner.withBeforeClasses(Statement statement) Returns aStatement: run all non-overridden@BeforeClassmethods on this class and superclasses before executingstatement; if any throws an Exception, stop execution and pass the exception on.protected StatementBlockJUnit4ClassRunner.withBefores(FrameworkMethod method, Object target, Statement statement) Returns aStatement: run all non-overridden@Beforemethods on this class and superclasses before runningnext; if any throws an Exception, stop execution and pass the exception on.protected final StatementParentRunner.withInterruptIsolation(Statement statement) protected StatementBlockJUnit4ClassRunner.withPotentialTimeout(FrameworkMethod method, Object test, Statement next) Deprecated. -
Uses of Statement in org.junit.runners.parameterized
Methods in org.junit.runners.parameterized that return StatementModifier and TypeMethodDescriptionprotected StatementBlockJUnit4ClassRunnerWithParameters.classBlock(RunNotifier notifier)
FailOnTimeout.builder()instead.