Class SpringXmlTestLoader

java.lang.Object
org.citrusframework.common.DefaultTestLoader
org.citrusframework.common.SpringXmlTestLoader
All Implemented Interfaces:
TestLoader, TestSourceAware

public class SpringXmlTestLoader extends DefaultTestLoader implements 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
  • Constructor Details

    • SpringXmlTestLoader

      public SpringXmlTestLoader()
  • Method Details

    • doLoad

      protected void doLoad()
      Overrides:
      doLoad in class DefaultTestLoader
    • getSource

      public String 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

      public void setSource(String source)
      Sets custom Spring application context file for XML test case.
      Specified by:
      setSource in interface TestSourceAware
    • source

      public SpringXmlTestLoader source(String source)