Package org.citrusframework.config.xml
Class SQLActionParser.ExecuteSQLQueryActionFactoryBean
java.lang.Object
org.citrusframework.config.xml.AbstractTestActionFactoryBean<T,B>
org.citrusframework.config.xml.AbstractDatabaseConnectingTestActionFactoryBean<ExecuteSQLQueryAction,ExecuteSQLQueryAction.Builder>
org.citrusframework.config.xml.SQLActionParser.ExecuteSQLQueryActionFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<ExecuteSQLQueryAction>
- Enclosing class:
- SQLActionParser
public static class SQLActionParser.ExecuteSQLQueryActionFactoryBean
extends AbstractDatabaseConnectingTestActionFactoryBean<ExecuteSQLQueryAction,ExecuteSQLQueryAction.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.Class<?>voidsetControlResultSet(Map<String, List<String>> controlResultSet) Set expected control result set.voidsetExtractVariables(Map<String, String> variablesMap) User can extract column values to test variables.voidsetScriptValidationContext(ScriptValidationContext scriptValidationContext) Sets the script validation context.Methods inherited from class org.citrusframework.config.xml.AbstractDatabaseConnectingTestActionFactoryBean
setDataSource, setJdbcTemplate, setSqlResourcePath, setStatements, setTransactionIsolationLevel, setTransactionManager, setTransactionTimeoutMethods 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
-
ExecuteSQLQueryActionFactoryBean
public ExecuteSQLQueryActionFactoryBean()
-
-
Method Details
-
getObject
- Throws:
Exception
-
setControlResultSet
Set expected control result set. Keys represent the column names, values the expected values.- Parameters:
controlResultSet-
-
setExtractVariables
User can extract column values to test variables. Map holds column names (keys) and respective target variable names (values).- Parameters:
variablesMap- the variables to be created out of database values
-
setScriptValidationContext
Sets the script validation context.- Parameters:
scriptValidationContext- the scriptValidationContext to set
-
getObjectType
-
getBuilder
Obtains the builder.- Specified by:
getBuilderin classAbstractTestActionFactoryBean<ExecuteSQLQueryAction,ExecuteSQLQueryAction.Builder> - Returns:
- the builder implementation.
-