@ContextConfiguration(classes={DatasourceConfiguration.class,SQLScriptsConfiguration.class})
@TransactionConfiguration(transactionManager="transactionManager",
defaultRollback=true)
@Transactional
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.
|
| Constructor and Description |
|---|
AbstractDefaultTestPart() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeSQLCleanUpScripts()
Executes the SQL clean up scripts if they are defined.
|
void |
executeSQLScripts()
Executes the SQL scripts if they are defined.
|
static boolean |
isRunningOnLocalHost()
Determines if the tests are being run on localhost or not.
|
countRowsInTable, countRowsInTableWhere, deleteFromTables, deleteFromTableWhere, dropTables, executeSqlScript, setDataSource, setSqlScriptEncodingprotected static String host
public static boolean isRunningOnLocalHost()
@Transactional(propagation=REQUIRES_NEW) public void executeSQLScripts()
@Transactional(propagation=REQUIRES_NEW) public void executeSQLCleanUpScripts()
Copyright © 2014 Tranquilized Quality. All rights reserved.