Package com.consol.citrus.junit.spring
Class CitrusSpringJUnit4Runner
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
- org.junit.runners.BlockJUnit4ClassRunner
-
- org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
- com.consol.citrus.junit.spring.CitrusSpringJUnit4Runner
-
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
public class CitrusSpringJUnit4Runner extends org.springframework.test.context.junit4.SpringJUnit4ClassRunnerJUnit 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 CitrusSpringJUnit4Runner(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.springframework.test.context.junit4.SpringJUnit4ClassRunner
createTest, createTestContextManager, getDescription, getExpectedException, getJUnitTimeout, getSpringTimeout, getTestContextManager, isTestMethodIgnored, methodBlock, possiblyExpectingExceptions, run, runChild, withAfterClasses, withAfters, withAfterTestExecutionCallbacks, withBeforeClasses, withBefores, withBeforeTestExecutionCallbacks, withPotentialRepeat, withPotentialTimeout
-
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getTestRules, isIgnored, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateZeroArgConstructor
-
-
-
-
Constructor Detail
-
CitrusSpringJUnit4Runner
public CitrusSpringJUnit4Runner(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
-
-