public abstract class KEWTestCase extends BaselineTestCase
Modifier and Type | Class and Description |
---|---|
static class |
KEWTestCase.BootstrapTest |
class |
KEWTestCase.ClearCacheLifecycle
Flushes the KEW cache(s)
|
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
dirty
LOG, moduleName
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
log, method
Constructor and Description |
---|
KEWTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
clearCacheManagers(org.springframework.cache.CacheManager... cacheManagers) |
protected String |
getGroupIdForName(String namespace,
String groupName) |
protected Lifecycle |
getLoadApplicationLifecycle() |
protected Long |
getNextSequenceLongValue(String sequenceName) |
protected String |
getNextSequenceStringValue(String sequenceName) |
protected List<Lifecycle> |
getPerTestLifecycles()
Override the standard per-test lifecycles to prepend
ClearDatabaseLifecycle and ClearCacheLifecycle
|
protected List<String> |
getPerTestTablesNotToClear() |
protected List<String> |
getPerTestTablesToClear()
Returns the List of tables that should be cleared on every test run.
|
protected String |
getPrincipalIdForName(String principalName) |
protected String |
getPrincipalNameForId(String principalId) |
protected String |
getRoleIdForName(String namespace,
String roleName) |
protected List<Lifecycle> |
getSuiteLifecycles() |
protected org.springframework.transaction.support.TransactionTemplate |
getTransactionTemplate() |
protected void |
loadDefaultTestData()
By default this loads the "default" data set from the DefaultTestData.sql
and DefaultTestData.xml files.
|
protected void |
loadPerTestData()
Initiates loading of per-test data
|
protected void |
loadSuiteTestData() |
protected void |
loadTestData() |
protected void |
loadXmlFile(Class clazz,
String fileName) |
protected void |
loadXmlFile(String fileName) |
protected void |
loadXmlFileFromFileSystem(String fileName) |
protected void |
loadXmlStream(InputStream xmlStream) |
protected void |
setUpAfterDataLoad()
Default implementation does nothing.
|
getClearDbPerTestLifecycles, getMode, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUp
getModuleName
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
configureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
getName, getPerTestDataLoaderLifecycle, getTestMethod, resetLogLevels, setLogLevel, setName, setTestMethod
public KEWTestCase()
protected List<Lifecycle> getSuiteLifecycles()
getSuiteLifecycles
in class RiceTestCase
protected void loadSuiteTestData() throws Exception
loadSuiteTestData
in class RiceInternalSuiteDataTestCase
Exception
protected void loadDefaultTestData() throws Exception
Exception
protected Lifecycle getLoadApplicationLifecycle()
getLoadApplicationLifecycle
in class RiceTestCase
protected void setUpAfterDataLoad() throws Exception
Exception
protected void loadTestData() throws Exception
Exception
protected org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
protected void loadPerTestData() throws Exception
loadPerTestData
in class RiceTestCase
Exception
protected List<Lifecycle> getPerTestLifecycles()
getPerTestLifecycles
in class BaselineTestCase
RiceTestCase.getPerTestLifecycles()
protected void clearCacheManagers(org.springframework.cache.CacheManager... cacheManagers)
protected List<String> getPerTestTablesToClear()
getPerTestTablesToClear
in class BaselineTestCase
protected List<String> getPerTestTablesNotToClear()
getPerTestTablesNotToClear
in class BaselineTestCase
protected void loadXmlFile(String fileName)
protected void loadXmlFile(Class clazz, String fileName)
protected void loadXmlFileFromFileSystem(String fileName)
protected void loadXmlStream(InputStream xmlStream)
protected String getPrincipalIdForName(String principalName)
protected String getPrincipalNameForId(String principalId)
protected String getGroupIdForName(String namespace, String groupName)
protected Long getNextSequenceLongValue(String sequenceName)
protected String getNextSequenceStringValue(String sequenceName)
protected String getRoleIdForName(String namespace, String roleName)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.