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 standardRunnerimplementations.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 classTheories.TheoryAnchorMethods in org.junit.experimental.theories that return Statement Modifier and Type Method Description StatementTheories. methodBlock(FrameworkMethod method)private StatementTheories.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 classExpectExceptionclassFailclassFailOnTimeoutclassInvokeMethodclassRunAftersclassRunBeforesFields in org.junit.internal.runners.statements declared as Statement Modifier and Type Field Description private StatementExpectException. nextprivate StatementRunAfters. nextprivate StatementRunBefores. nextprivate StatementFailOnTimeout. originalStatementMethods in org.junit.internal.runners.statements with parameters of type Statement Modifier and Type Method Description FailOnTimeoutFailOnTimeout.Builder. build(Statement statement)Builds aFailOnTimeoutinstance 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 classExpectedException.ExpectedExceptionStatementclassRunRulesRuns a collection of rules on a statement.Fields in org.junit.rules declared as Statement Modifier and Type Field Description private StatementExpectedException.ExpectedExceptionStatement. nextprivate StatementRunRules. statementMethods in org.junit.rules that return Statement Modifier and Type Method Description StatementDisableOnDebug. apply(Statement base, Description description)StatementExpectedException. apply(Statement base, Description description)StatementExternalResource. apply(Statement base, Description description)StatementMethodRule. apply(Statement base, FrameworkMethod method, java.lang.Object target)Modifies the method-runningStatementto implement an additional test-running rule.StatementRuleChain. apply(Statement base, Description description)Modifies the method-runningStatementto implement this test-running rule.StatementStopwatch. apply(Statement base, Description description)StatementTestRule. apply(Statement base, Description description)Modifies the method-runningStatementto implement this test-running rule.StatementTestWatcher. apply(Statement base, Description description)StatementTestWatchman. apply(Statement base, FrameworkMethod method, java.lang.Object target)Deprecated.StatementTimeout. apply(Statement base, Description description)StatementVerifier. apply(Statement base, Description description)private static StatementRunRules. applyAll(Statement result, java.lang.Iterable<TestRule> rules, 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.private StatementExternalResource. statement(Statement base)Methods in org.junit.rules with parameters of type Statement Modifier and Type Method Description StatementDisableOnDebug. apply(Statement base, Description description)StatementExpectedException. apply(Statement base, Description description)StatementExternalResource. apply(Statement base, Description description)StatementMethodRule. apply(Statement base, FrameworkMethod method, java.lang.Object target)Modifies the method-runningStatementto implement an additional test-running rule.StatementRuleChain. apply(Statement base, Description description)Modifies the method-runningStatementto implement this test-running rule.StatementStopwatch. apply(Statement base, Description description)StatementTestRule. apply(Statement base, Description description)Modifies the method-runningStatementto implement this test-running rule.StatementTestWatcher. apply(Statement base, Description description)StatementTestWatchman. apply(Statement base, FrameworkMethod method, java.lang.Object target)Deprecated.StatementTimeout. apply(Statement base, Description description)StatementVerifier. apply(Statement base, Description description)private static StatementRunRules. applyAll(Statement result, java.lang.Iterable<TestRule> rules, 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.private StatementExternalResource. 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 StatementRuleContainer. apply(FrameworkMethod method, Description description, java.lang.Object target, Statement statement)Applies all the rules ordered accordingly to the specifiedstatement.protected 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, java.lang.Object test)protected StatementBlockJUnit4ClassRunner. possiblyExpectingExceptions(FrameworkMethod method, java.lang.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, java.lang.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, java.lang.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.private StatementParentRunner. withClassRules(Statement statement)protected StatementParentRunner. withInterruptIsolation(Statement statement)protected StatementBlockJUnit4ClassRunner. withPotentialTimeout(FrameworkMethod method, java.lang.Object test, Statement next)Deprecated.private StatementBlockJUnit4ClassRunner. withRules(FrameworkMethod method, java.lang.Object target, Statement statement)Methods in org.junit.runners with parameters of type Statement Modifier and Type Method Description StatementRuleContainer. apply(FrameworkMethod method, Description description, java.lang.Object target, Statement statement)Applies all the rules ordered accordingly to the specifiedstatement.protected StatementBlockJUnit4ClassRunner. possiblyExpectingExceptions(FrameworkMethod method, java.lang.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 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, java.lang.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, java.lang.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.private StatementParentRunner. withClassRules(Statement statement)protected StatementParentRunner. withInterruptIsolation(Statement statement)protected StatementBlockJUnit4ClassRunner. withPotentialTimeout(FrameworkMethod method, java.lang.Object test, Statement next)Deprecated.private StatementBlockJUnit4ClassRunner. withRules(FrameworkMethod method, java.lang.Object target, Statement statement) -
Uses of Statement in org.junit.runners.parameterized
Subclasses of Statement in org.junit.runners.parameterized Modifier and Type Class Description private classBlockJUnit4ClassRunnerWithParameters.RunAfterParamsprivate classBlockJUnit4ClassRunnerWithParameters.RunBeforeParamsMethods in org.junit.runners.parameterized that return Statement Modifier and Type Method Description protected StatementBlockJUnit4ClassRunnerWithParameters. classBlock(RunNotifier notifier)private StatementBlockJUnit4ClassRunnerWithParameters. withAfterParams(Statement statement)private StatementBlockJUnit4ClassRunnerWithParameters. withBeforeParams(Statement statement)Methods in org.junit.runners.parameterized with parameters of type Statement Modifier and Type Method Description private StatementBlockJUnit4ClassRunnerWithParameters. withAfterParams(Statement statement)private StatementBlockJUnit4ClassRunnerWithParameters. withBeforeParams(Statement statement)Constructors in org.junit.runners.parameterized with parameters of type Statement Constructor Description RunAfterParams(Statement next, java.util.List<FrameworkMethod> afters)RunBeforeParams(Statement next, java.util.List<FrameworkMethod> befores)
-