public abstract class AbstractDefaultTestPart
extends org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
TestSuite that starts up the container utility. This will only starts
up his own application context with SQL scripts that need to be executed.
Starting up of the container utility will be delegated to the
TestSuite.| Modifier and Type | Field and Description |
|---|---|
protected static String |
host
The host to test.
|
protected static List<String> |
SQL_CLEAN_UP_SCRIPTS
List of SQL scripts that will be executed after every test.
|
protected static List<String> |
SQL_SCRIPTS
List of SQL scripts that will be executed before every test.
|
| Constructor and Description |
|---|
AbstractDefaultTestPart() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeSQLCleanUpScripts() |
void |
executeSQLScripts() |
protected static org.springframework.context.ConfigurableApplicationContext |
loadContext(String[] locations)
Loads the application context with the ability to load SQL scripts that
need to be executed.
|
static void |
runOnce() |
countRowsInTable, deleteFromTables, executeSqlScript, setDataSource, setSqlScriptEncodingprotected static List<String> SQL_SCRIPTS
protected static List<String> SQL_CLEAN_UP_SCRIPTS
protected static String host
protected static org.springframework.context.ConfigurableApplicationContext loadContext(String[] locations)
locations - A string array containing all the files that need to be loaded
in the application context.@Transactional(propagation=REQUIRES_NEW)
public void executeSQLScripts()
throws Exception
ExceptionCopyright © 2014 Tranquilized Quality. All rights reserved.