Package com.consol.citrus.config.xml
Class TemplateParser.TemplateFactoryBean
- java.lang.Object
-
- com.consol.citrus.config.xml.AbstractTestActionFactoryBean<com.consol.citrus.container.Template,com.consol.citrus.container.Template.Builder>
-
- com.consol.citrus.config.xml.TemplateParser.TemplateFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<com.consol.citrus.container.Template>
- Enclosing class:
- TemplateParser
public static class TemplateParser.TemplateFactoryBean extends AbstractTestActionFactoryBean<com.consol.citrus.container.Template,com.consol.citrus.container.Template.Builder>
Test action factory bean.
-
-
Constructor Summary
Constructors Constructor Description TemplateFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.consol.citrus.container.Template.Builder
getBuilder()
Obtains the builder.com.consol.citrus.container.Template
getObject()
Adds test actions to container when building object.Class<?>
getObjectType()
void
setActions(List<com.consol.citrus.TestAction> actions)
Sets the test actions.void
setGlobalContext(boolean globalContext)
Boolean flag marking the template variables should also affect variables in test case.void
setParameter(Map<String,String> parameter)
Set parameter before execution.void
setTemplateName(String templateName)
Sets the template name.-
Methods inherited from class com.consol.citrus.config.xml.AbstractTestActionFactoryBean
setActor, setDescription, setName
-
-
-
-
Method Detail
-
setTemplateName
public void setTemplateName(String templateName)
Sets the template name.- Parameters:
templateName
-
-
setActions
public void setActions(List<com.consol.citrus.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 com.consol.citrus.container.Template getObject() throws Exception
Adds test actions to container when building object.- Returns:
- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
-
getBuilder
public com.consol.citrus.container.Template.Builder getBuilder()
Obtains the builder.- Specified by:
getBuilder
in classAbstractTestActionFactoryBean<com.consol.citrus.container.Template,com.consol.citrus.container.Template.Builder>
- Returns:
- the builder implementation.
-
-