Class JUnitScenarioRunner

  • All Implemented Interfaces:
    org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable, org.springframework.test.context.TestExecutionListener

    public class JUnitScenarioRunner
    extends OpenNMSJUnit4ClassRunner
    implements org.springframework.test.context.TestExecutionListener
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterTestClass​(org.springframework.test.context.TestContext testContext)  
      void afterTestMethod​(org.springframework.test.context.TestContext testContext)  
      void beforeTestClass​(org.springframework.test.context.TestContext testContext)  
      void beforeTestMethod​(org.springframework.test.context.TestContext testContext)  
      ScenarioResults getResults()  
      void prepareTestInstance​(org.springframework.test.context.TestContext testContext)  
      • Methods inherited from class org.springframework.test.context.junit4.SpringJUnit4ClassRunner

        createTest, createTestContextManager, getDescription, getExpectedException, getJUnitTimeout, getSpringTimeout, getTestContextManager, isTestMethodIgnored, methodBlock, possiblyExpectingExceptions, run, runChild, withAfterClasses, withAfters, withBeforeClasses, withBefores, withPotentialRepeat, withPotentialTimeout
      • Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

        collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, isIgnored, methodInvoker, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor
      • Methods inherited from class org.junit.runners.ParentRunner

        childrenInvoker, classBlock, classRules, createTestClass, filter, getName, getRunnerAnnotations, getTestClass, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods
      • Methods inherited from class org.junit.runner.Runner

        testCount
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JUnitScenarioRunner

        public JUnitScenarioRunner​(java.lang.Class<? extends ScenarioHandler> clazz,
                                   Scenario scenario)
                            throws org.junit.runners.model.InitializationError
        Throws:
        org.junit.runners.model.InitializationError
    • Method Detail

      • beforeTestMethod

        public void beforeTestMethod​(org.springframework.test.context.TestContext testContext)
        Specified by:
        beforeTestMethod in interface org.springframework.test.context.TestExecutionListener
      • afterTestMethod

        public void afterTestMethod​(org.springframework.test.context.TestContext testContext)
        Specified by:
        afterTestMethod in interface org.springframework.test.context.TestExecutionListener
      • beforeTestClass

        public void beforeTestClass​(org.springframework.test.context.TestContext testContext)
        Specified by:
        beforeTestClass in interface org.springframework.test.context.TestExecutionListener
      • afterTestClass

        public void afterTestClass​(org.springframework.test.context.TestContext testContext)
        Specified by:
        afterTestClass in interface org.springframework.test.context.TestExecutionListener
      • prepareTestInstance

        public void prepareTestInstance​(org.springframework.test.context.TestContext testContext)
        Specified by:
        prepareTestInstance in interface org.springframework.test.context.TestExecutionListener