Class HybrisJUnit4ClassRunner

java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
de.hybris.platform.testframework.HybrisJUnit4ClassRunner
All Implemented Interfaces:
UnifiedHybrisTestRunner, org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.manipulation.Sortable

public class HybrisJUnit4ClassRunner extends org.junit.runners.BlockJUnit4ClassRunner implements UnifiedHybrisTestRunner
Test class runner for support of RunListeners annotation.
Since:
3.0-u3
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates new instance and delegates to de.hybris.platform.testframework.HybrisTestClassRunnerLogic
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.junit.runner.Description
    describeChild(org.junit.runners.model.FrameworkMethod method)
    Overridden for adding the annotations of the test methods as well as for classes to the description object.
    void
    filter(org.junit.runner.manipulation.Filter filter)
     
     
    void
    run(org.junit.runner.notification.RunNotifier notifier)
     
    void
    superFilter(org.junit.runner.manipulation.Filter filter)
    Calls super#filter(org.junit.runner.manipulation.Filter)
    void
    superRun(org.junit.runner.notification.RunNotifier notifier)
    Calls super#run(org.junit.runner.notification.RunNotifier)
    protected org.junit.runners.model.Statement
    withBeforeClasses(org.junit.runners.model.Statement statement)
     

    Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

    collectInitializationErrors, computeTestMethods, createTest, createTest, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout

    Methods inherited from class org.junit.runners.ParentRunner

    childrenInvoker, classBlock, classRules, createTestClass, getDescription, getName, getRunnerAnnotations, getTestClass, order, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withInterruptIsolation

    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 Details

    • HybrisJUnit4ClassRunner

      public HybrisJUnit4ClassRunner(Class<?> clazz) throws org.junit.runners.model.InitializationError
      Creates new instance and delegates to de.hybris.platform.testframework.HybrisTestClassRunnerLogic
      Parameters:
      clazz - test class
      Throws:
      org.junit.runners.model.InitializationError - error while initialization
  • Method Details

    • filter

      public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException
      Specified by:
      filter in interface org.junit.runner.manipulation.Filterable
      Overrides:
      filter in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
      Throws:
      org.junit.runner.manipulation.NoTestsRemainException
    • run

      public void run(org.junit.runner.notification.RunNotifier notifier)
      Overrides:
      run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
    • describeChild

      protected org.junit.runner.Description describeChild(org.junit.runners.model.FrameworkMethod method)
      Overridden for adding the annotations of the test methods as well as for classes to the description object. Annotations at methods will be placed before the classes one, the determination will find the method ones first.
      Overrides:
      describeChild in class org.junit.runners.BlockJUnit4ClassRunner
    • withBeforeClasses

      protected org.junit.runners.model.Statement withBeforeClasses(org.junit.runners.model.Statement statement)
      Overrides:
      withBeforeClasses in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
    • getCurrentTestClass

      public Class getCurrentTestClass()
      Specified by:
      getCurrentTestClass in interface UnifiedHybrisTestRunner
    • superFilter

      public void superFilter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException
      Description copied from interface: UnifiedHybrisTestRunner
      Calls super#filter(org.junit.runner.manipulation.Filter)
      Specified by:
      superFilter in interface UnifiedHybrisTestRunner
      Throws:
      org.junit.runner.manipulation.NoTestsRemainException
    • superRun

      public void superRun(org.junit.runner.notification.RunNotifier notifier)
      Description copied from interface: UnifiedHybrisTestRunner
      Calls super#run(org.junit.runner.notification.RunNotifier)
      Specified by:
      superRun in interface UnifiedHybrisTestRunner