Package org.citrusframework.config.xml
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.
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains the builder.Adds test actions to container when building object.Class<?>voidsetActions(List<TestAction> actions) Sets the test actions.voidsetGlobalContext(boolean globalContext) Boolean flag marking the template variables should also affect variables in test case.voidsetParameter(Map<String, String> parameter) Set parameter before execution.voidsetTemplateName(String templateName) Sets the template name.Methods inherited from class org.citrusframework.config.xml.AbstractTestActionFactoryBean
setActor, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
TemplateFactoryBean
public TemplateFactoryBean()
-
-
Method Details
-
setTemplateName
Sets the template name.- Parameters:
templateName-
-
setActions
Sets the test actions.- Parameters:
actions-
-
setParameter
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
Adds test actions to container when building object.- Returns:
- Throws:
Exception
-
getObjectType
-
getBuilder
Obtains the builder.- Specified by:
getBuilderin classAbstractTestActionFactoryBean<Template,Template.Builder> - Returns:
- the builder implementation.
-