Package com.consol.citrus.junit
Class CitrusJUnit4Runner
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
- org.junit.runners.BlockJUnit4ClassRunner
-
- com.consol.citrus.junit.CitrusJUnit4Runner
-
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
public class CitrusJUnit4Runner extends org.junit.runners.BlockJUnit4ClassRunnerJUnit runner reads Citrus test annotation for XML test cases and prepares test execution within proper Citrus test context boundaries. Supports package scan as well as multiple test method annotations within one single class.- Since:
- 2.2
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description CitrusJUnit4Runner(Class<?> clazz)Default constructor using class to run.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<org.junit.runners.model.FrameworkMethod>getChildren()protected org.junit.runners.model.StatementmethodInvoker(org.junit.runners.model.FrameworkMethod frameworkMethod, Object testInstance)protected voidvalidateTestMethods(List<Throwable> errors)-
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, createTest, describeChild, getTestRules, isIgnored, methodBlock, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
-
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation
-
-
-
-
Constructor Detail
-
CitrusJUnit4Runner
public CitrusJUnit4Runner(Class<?> clazz) throws org.junit.runners.model.InitializationError
Default constructor using class to run.- Parameters:
clazz- the test class to be run- Throws:
org.junit.runners.model.InitializationError
-
-
Method Detail
-
methodInvoker
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod frameworkMethod, Object testInstance)- Overrides:
methodInvokerin classorg.junit.runners.BlockJUnit4ClassRunner
-
getChildren
protected List<org.junit.runners.model.FrameworkMethod> getChildren()
- Overrides:
getChildrenin classorg.junit.runners.BlockJUnit4ClassRunner
-
-