Package de.hybris.platform.testframework
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.Sortable
public class HybrisJUnit4ClassRunner extends org.junit.runners.BlockJUnit4ClassRunner implements UnifiedHybrisTestRunner
Test class runner for support ofRunListenersannotation.- Since:
- 3.0-u3
-
-
Constructor Summary
Constructors Constructor Description HybrisJUnit4ClassRunner(java.lang.Class<?> clazz)Creates new instance and delegates to de.hybris.platform.testframework.HybrisTestClassRunnerLogic
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.junit.runner.DescriptiondescribeChild(org.junit.runners.model.FrameworkMethod method)Overridden for adding the annotations of the test methods as well as for classes to the description object.voidfilter(org.junit.runner.manipulation.Filter filter)java.lang.ClassgetCurrentTestClass()voidrun(org.junit.runner.notification.RunNotifier notifier)voidsuperFilter(org.junit.runner.manipulation.Filter filter)Calls super#filter(org.junit.runner.manipulation.Filter)voidsuperRun(org.junit.runner.notification.RunNotifier notifier)Calls super#run(org.junit.runner.notification.RunNotifier)protected org.junit.runners.model.StatementwithBeforeClasses(org.junit.runners.model.Statement statement)-
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
-
-
-
-
Constructor Detail
-
HybrisJUnit4ClassRunner
public HybrisJUnit4ClassRunner(java.lang.Class<?> clazz) throws org.junit.runners.model.InitializationErrorCreates new instance and delegates to de.hybris.platform.testframework.HybrisTestClassRunnerLogic- Parameters:
clazz- test class- Throws:
org.junit.runners.model.InitializationError- error while initialization
-
-
Method Detail
-
filter
public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException- Specified by:
filterin interfaceorg.junit.runner.manipulation.Filterable- Overrides:
filterin classorg.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:
runin classorg.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:
describeChildin classorg.junit.runners.BlockJUnit4ClassRunner
-
withBeforeClasses
protected org.junit.runners.model.Statement withBeforeClasses(org.junit.runners.model.Statement statement)
- Overrides:
withBeforeClassesin classorg.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
getCurrentTestClass
public java.lang.Class getCurrentTestClass()
- Specified by:
getCurrentTestClassin interfaceUnifiedHybrisTestRunner
-
superFilter
public void superFilter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainExceptionDescription copied from interface:UnifiedHybrisTestRunnerCalls super#filter(org.junit.runner.manipulation.Filter)- Specified by:
superFilterin interfaceUnifiedHybrisTestRunner- Throws:
org.junit.runner.manipulation.NoTestsRemainException
-
superRun
public void superRun(org.junit.runner.notification.RunNotifier notifier)
Description copied from interface:UnifiedHybrisTestRunnerCalls super#run(org.junit.runner.notification.RunNotifier)- Specified by:
superRunin interfaceUnifiedHybrisTestRunner
-
-