public abstract class BusinessObjectPersistenceTestCaseBase extends BusinessObjectDaoTestCaseBase
KENTestCase.ClearCacheLifecycle
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
businessObjectDao
services, transactionManager
dirty
LOG, moduleName
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
log, method
Constructor and Description |
---|
BusinessObjectPersistenceTestCaseBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
delete()
This method must be implemented to return true if a record
was properly delted from the database.
|
protected abstract boolean |
insert()
This method must be implemented to return true if a record
was properly inserted into the database.
|
protected abstract boolean |
retrieve()
This method must be implemented to return true if a record
was properly retreived from the database.
|
protected void |
setup()
This method should be overridden and implemented to perform a setup of any dependent objects that
business object may need to reference.
|
void |
testBasicPersistence()
This method is responsible for testing the basic persistence of a business object.
|
protected abstract boolean |
update()
This method must be implemented to return true if a record
was properly updated in the database.
|
protected abstract boolean |
validateChanges()
This method should be implemented to retrieve the objects that were just updated, and validate
that their changes took effect.
|
setUp
disableQuartzJobs, enableQuartzJobs, getLoadApplicationLifecycle, getNotificationPerTestLifecycles, getPerTestLifecycles, getPerTestTablesToClear, getSuiteLifecycles, loadDefaultTestData, loadPerTestData, setUpAfterDataLoad
getClearDbPerTestLifecycles, getMode, getPerTestTablesNotToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles
getModuleName
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData, loadSuiteTestData
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
public BusinessObjectPersistenceTestCaseBase()
public void testBasicPersistence()
protected void setup()
protected abstract boolean insert()
protected abstract boolean retrieve()
protected abstract boolean update()
protected abstract boolean validateChanges()
protected abstract boolean delete()
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.