public class ScriptingConfiguration extends Configuration
arquillian.xml
descriptor in the element with qualifier persistence-script.
| Modifier and Type | Field and Description |
|---|---|
static String |
NEW_LINE_SYMBOL |
| Constructor and Description |
|---|
ScriptingConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
TestExecutionPhase |
getDefaultCleanupUsingScriptPhase() |
String |
getDefaultSqlScriptLocation() |
String[] |
getScriptsToExecuteAfterTest() |
String[] |
getScriptsToExecuteBeforeTest() |
String |
getSqlStatementDelimiter() |
void |
setDefaultCleanupUsingScriptPhase(TestExecutionPhase defaultCleanupUsingScriptPhase) |
void |
setDefaultSqlScriptLocation(String defaultSqlScriptLocation) |
void |
setScriptsToExecuteAfterTest(String[] scriptsToExecuteAfterTest) |
void |
setScriptsToExecuteBeforeTest(String[] scriptsToExecuteBeforeTest) |
void |
setSqlStatementDelimiter(String sqlStatementDelimiter) |
exportUsing, getPrefix, getQualifier, importTo, toStringpublic static final String NEW_LINE_SYMBOL
public String[] getScriptsToExecuteBeforeTest()
public void setScriptsToExecuteBeforeTest(String[] scriptsToExecuteBeforeTest)
scriptsToExecuteBeforeTest - Ad-hoc scripts or file location to be used before every test.
Might be handy for turning off integrity checks.public String[] getScriptsToExecuteAfterTest()
public void setScriptsToExecuteAfterTest(String[] scriptsToExecuteAfterTest)
scriptsToExecuteAfterTest - Ad-hoc scripts or file location to be used after every test.
Could be used to revert operations applied by scriptsToExecuteBeforeTestpublic String getDefaultSqlScriptLocation()
public void setDefaultSqlScriptLocation(String defaultSqlScriptLocation)
defaultSqlScriptLocation - Folder where all custom SQL scripts are located.
Default value is scriptspublic TestExecutionPhase getDefaultCleanupUsingScriptPhase()
public void setDefaultCleanupUsingScriptPhase(TestExecutionPhase defaultCleanupUsingScriptPhase)
defaultCleanupUsingScriptPhase - Defines default cleanup phase for custom SQL scripts.
If not specified it's assumed to be AFTER test method.public String getSqlStatementDelimiter()
public void setSqlStatementDelimiter(String sqlStatementDelimiter)
sqlStatementDelimiter - Defines char sequence indicating end of SQL statement. Default value: ';'Copyright © 2013 JBoss by Red Hat. All Rights Reserved.