Package org.citrusframework.common
Class SpringXmlTestLoader
java.lang.Object
org.citrusframework.common.DefaultTestLoader
org.citrusframework.common.SpringXmlTestLoader
- All Implemented Interfaces:
TestLoader,TestSourceAware
Loads test case as Spring bean from XML application context file. Loader holds application context file
for test case and a parent application context. At runtime this class loads the Spring application context and gets
test case bean instance from context.
- Since:
- 2.1
- Author:
- Christoph Deppisch
-
Field Summary
Fields inherited from class org.citrusframework.common.DefaultTestLoader
citrus, citrusContext, configurer, context, handler, packageName, runner, testCase, testClass, testNameFields inherited from interface org.citrusframework.common.TestLoader
GROOVY, logger, RESOURCE_PATH, SPRING, TYPE_RESOLVER, XML, YAML -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.citrusframework.common.DefaultTestLoader
citrus, citrusContext, configureTestCase, context, doWithTestCase, getTestCase, initializeTestRunner, load, packageName, runner, setCitrus, setCitrusContext, setContext, setPackageName, setRunner, setTestCase, setTestClass, setTestName, testCase, testClass, testName
-
Constructor Details
-
SpringXmlTestLoader
public SpringXmlTestLoader()
-
-
Method Details
-
doLoad
protected void doLoad()- Overrides:
doLoadin classDefaultTestLoader
-
getSource
Gets custom Spring application context file for the XML test case. If not set creates default context file path from testName and packageName. -
setSource
Sets custom Spring application context file for XML test case.- Specified by:
setSourcein interfaceTestSourceAware
-
source
-