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 |
|---|---|
Charset |
getCharset() |
org.arquillian.ape.api.TestExecutionPhase |
getDefaultCleanupUsingScriptPhase() |
String |
getDefaultSqlScriptLocation() |
String[] |
getScriptsToExecuteAfterTest() |
String[] |
getScriptsToExecuteBeforeTest() |
String |
getSqlDialect() |
String |
getSqlStatementDelimiter() |
boolean |
isShowSql() |
boolean |
isTrimSqlStatementDelimiter() |
void |
setCharset(Charset charset)
Defines which @{link Charset} should be used when executing SQL scripts.
|
void |
setDefaultCleanupUsingScriptPhase(org.arquillian.ape.api.TestExecutionPhase defaultCleanupUsingScriptPhase) |
void |
setDefaultSqlScriptLocation(String defaultSqlScriptLocation) |
void |
setScriptsToExecuteAfterTest(String[] scriptsToExecuteAfterTest) |
void |
setScriptsToExecuteBeforeTest(String[] scriptsToExecuteBeforeTest) |
void |
setShowSql(boolean showSql) |
void |
setSqlDialect(String sqlDialect)
Defines which SQL-specific implementation of
org.arquillian.persistence.spi.script.StatementSplitter
(parser)
should be used when splitting sql script into separated statements. |
void |
setSqlStatementDelimiter(String sqlStatementDelimiter) |
void |
setTrimSqlStatementDelimiter(boolean trimSqlStatementDelimiter) |
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 org.arquillian.ape.api.TestExecutionPhase getDefaultCleanupUsingScriptPhase()
public void setDefaultCleanupUsingScriptPhase(org.arquillian.ape.api.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: ';'public boolean isTrimSqlStatementDelimiter()
public void setTrimSqlStatementDelimiter(boolean trimSqlStatementDelimiter)
trimSqlStatementDelimiter - Defines if the statement delimiter should be removed from the parsed statements. Default value: falsepublic boolean isShowSql()
public void setShowSql(boolean showSql)
showSql - Defines if each SQL statements should be logged when executing.public String getSqlDialect()
public void setSqlDialect(String sqlDialect)
org.arquillian.persistence.spi.script.StatementSplitter
(parser)
should be used when splitting sql script into separated statements. Default value is "default" and DefaultStatementSplitter is used.public Charset getCharset()
public void setCharset(Charset charset)
Copyright © 2018 JBoss by Red Hat. All rights reserved.