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.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
ConstructorsConstructorDescriptionHybrisJUnit4ClassRunner(Class<?> clazz) Creates new instance and delegates to de.hybris.platform.testframework.HybrisTestClassRunnerLogic -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) 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, createTest, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutMethods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, createTestClass, getDescription, getName, getRunnerAnnotations, getTestClass, order, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withInterruptIsolationMethods inherited from class org.junit.runner.Runner
testCount
-
Constructor Details
-
HybrisJUnit4ClassRunner
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:
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
- Specified by:
getCurrentTestClassin interfaceUnifiedHybrisTestRunner
-
superFilter
public void superFilter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException Description 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
-