Class RunBeforeTestExecutionCallbacks

  • java.lang.Object
    • org.junit.runners.model.Statement
      • org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks
    • Constructor Detail

      • RunBeforeTestExecutionCallbacks

        public RunBeforeTestExecutionCallbacks(org.junit.runners.model.Statement next,
                                               java.lang.Object testInstance,
                                               java.lang.reflect.Method testMethod,
                                               TestContextManager testContextManager)
        Construct a new RunBeforeTestExecutionCallbacks statement.
        next - the next Statement in the execution chain
        testInstance - the current test instance (never null)
        testMethod - the test method which is about to be executed on the test instance
        testContextManager - the TestContextManager upon which to call beforeTestExecution()
    • Method Detail

      • evaluate

        public void evaluate()
                      throws java.lang.Throwable
        Invoke TestContextManager.beforeTestExecution(Object, Method) and then evaluate the next Statement in the execution chain (typically an instance of InvokeMethod).
        Specified by:
        evaluate in class org.junit.runners.model.Statement