Class TemplateParser.TemplateFactoryBean

java.lang.Object
org.citrusframework.config.xml.AbstractTestActionFactoryBean<Template,Template.Builder>
org.citrusframework.config.xml.TemplateParser.TemplateFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<Template>
Enclosing class:
TemplateParser

public static class TemplateParser.TemplateFactoryBean extends AbstractTestActionFactoryBean<Template,Template.Builder>
Test action factory bean.
  • Constructor Details

    • TemplateFactoryBean

      public TemplateFactoryBean()
  • Method Details

    • setTemplateName

      public void setTemplateName(String templateName)
      Sets the template name.
      Parameters:
      templateName -
    • setActions

      public void setActions(List<TestAction> actions)
      Sets the test actions.
      Parameters:
      actions -
    • setParameter

      public void setParameter(Map<String,String> parameter)
      Set parameter before execution.
      Parameters:
      parameter - the parameter to set
    • setGlobalContext

      public void setGlobalContext(boolean globalContext)
      Boolean flag marking the template variables should also affect variables in test case.
      Parameters:
      globalContext - the globalContext to set
    • getObject

      public Template getObject() throws Exception
      Adds test actions to container when building object.
      Returns:
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
    • getBuilder

      public Template.Builder getBuilder()
      Obtains the builder.
      Specified by:
      getBuilder in class AbstractTestActionFactoryBean<Template,Template.Builder>
      Returns:
      the builder implementation.