Class ScriptsBase
- java.lang.Object
-
- org.jbpm.test.persistence.scripts.ScriptsBase
-
public class ScriptsBase extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringBACKUP_PERSISTENCE_XML_PATHprotected static StringDB_DDL_SCRIPTS_RESOURCE_PATHprotected static StringPERSISTENCE_XML_PATHprotected static StringTEST_PROCESS_IDorg.junit.rules.TestRulewatcher
-
Constructor Summary
Constructors Constructor Description ScriptsBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcleanUp()static voidexecuteScriptRunner(String resourcePath, ScriptFilter scriptFilter)static voidexecuteScriptRunner(String resourcePath, ScriptFilter scriptFilter, DataSource dataSource, String defaultSchema)protected StringgetUpdatedXml(String placeholderValue)protected voidreplaceNewGeneratorMappingsValue(ScriptFilter script)voidrestoreBackup()voidsetUp()
-
-
-
Field Detail
-
DB_DDL_SCRIPTS_RESOURCE_PATH
protected static final String DB_DDL_SCRIPTS_RESOURCE_PATH
- See Also:
- Constant Field Values
-
TEST_PROCESS_ID
protected static final String TEST_PROCESS_ID
- See Also:
- Constant Field Values
-
PERSISTENCE_XML_PATH
protected static final String PERSISTENCE_XML_PATH
- See Also:
- Constant Field Values
-
BACKUP_PERSISTENCE_XML_PATH
protected static final String BACKUP_PERSISTENCE_XML_PATH
- See Also:
- Constant Field Values
-
watcher
public org.junit.rules.TestRule watcher
-
-
Method Detail
-
cleanUp
public static void cleanUp() throws IOException, SQLException- Throws:
IOExceptionSQLException
-
setUp
public void setUp() throws IOException- Throws:
IOException
-
restoreBackup
public void restoreBackup() throws IOException- Throws:
IOException
-
executeScriptRunner
public static void executeScriptRunner(String resourcePath, ScriptFilter scriptFilter) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
executeScriptRunner
public static void executeScriptRunner(String resourcePath, ScriptFilter scriptFilter, DataSource dataSource, String defaultSchema) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
replaceNewGeneratorMappingsValue
protected void replaceNewGeneratorMappingsValue(ScriptFilter script) throws IOException
- Throws:
IOException
-
getUpdatedXml
protected String getUpdatedXml(String placeholderValue) throws IOException
- Throws:
IOException
-
-