@ContextConfiguration(classes=CitrusSpringConfig.class) public abstract class AbstractJUnit4CitrusTest extends org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
Modifier and Type | Field and Description |
---|---|
protected Citrus |
citrus
Citrus instance
|
protected org.slf4j.Logger |
log
Logger
|
Constructor and Description |
---|
AbstractJUnit4CitrusTest() |
Modifier and Type | Method and Description |
---|---|
protected TestLoader |
createTestLoader(String testName,
String packageName)
Creates new test loader which has TestNG test annotations set for test execution.
|
protected void |
executeTest()
Execute the test case.
|
protected TestCase |
getTestCase()
Constructs the test case to execute.
|
protected TestContext |
prepareTestContext(TestContext testContext)
Prepares the test context.
|
protected Object |
resolveAnnotatedResource(CitrusJUnit4Runner.CitrusFrameworkMethod frameworkMethod,
Class<?> parameterType,
TestContext context)
Resolves value for annotated method parameter.
|
protected Object[] |
resolveParameter(CitrusJUnit4Runner.CitrusFrameworkMethod frameworkMethod,
TestCase testCase,
TestContext context)
Resolves method arguments supporting TestNG data provider parameters as well as
CitrusResource annotated methods. |
protected void |
run(CitrusJUnit4Runner.CitrusFrameworkMethod frameworkMethod)
Reads Citrus test annotation from framework method and executes test case.
|
protected final org.slf4j.Logger log
protected Citrus citrus
protected void run(CitrusJUnit4Runner.CitrusFrameworkMethod frameworkMethod)
frameworkMethod
- protected Object[] resolveParameter(CitrusJUnit4Runner.CitrusFrameworkMethod frameworkMethod, TestCase testCase, TestContext context)
CitrusResource
annotated methods.frameworkMethod
- testCase
- context
- protected Object resolveAnnotatedResource(CitrusJUnit4Runner.CitrusFrameworkMethod frameworkMethod, Class<?> parameterType, TestContext context)
frameworkMethod
- parameterType
- protected void executeTest()
protected TestContext prepareTestContext(TestContext testContext)
testContext
- the test context.protected TestLoader createTestLoader(String testName, String packageName)
testName
- packageName
- protected TestCase getTestCase()
Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.