public abstract class BaseMaintenanceDocumentTest extends KRADTestCase
It provides test methods for setting up, editing, saving and copying a maintenance document
KRADTestCase.BootstrapTest, KRADTestCase.Legacy
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
dd, kradTestHarnessSpringResourceLoader
dirty
LOG, moduleName
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
log, method
Constructor and Description |
---|
BaseMaintenanceDocumentTest() |
Modifier and Type | Method and Description |
---|---|
MaintenanceDocument |
getDocument()
gets the maintenance document that is created in the constructor
|
protected String |
getDocumentTypeName()
Override this method to provide different value
|
protected String |
getInitiatorPrincipalName()
Override this method to provide different initiator
|
protected abstract Object |
getNewMaintainableObject() |
protected abstract Object |
getOldMaintainableObject() |
void |
setDocument(MaintenanceDocument document)
set the maintenance document to use in the test
|
void |
setUp() |
void |
setUpBeforeTest() |
protected void |
setupEditAccountMaintDoc(MaintenanceDocument document)
populate maintenance document with objects for editing
|
protected void |
setupNewAccountMaintDoc(MaintenanceDocument document)
setup a new maintenance document
|
void |
test_CopyDoc() |
void |
test_EditDoc() |
void |
test_NewDoc() |
void |
test_SaveNewDoc() |
getKRADTestHarnessContext, getLoadApplicationLifecycle, getPerTestTablesNotToClear, getSuiteLifecycles, getTestDictionaryObject, loadSuiteTestData, setUpInternal, setUpLegacyContext, tearDown, tearDownLegacyContext
getClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles
getModuleName
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
configureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles
getName, getPerTestDataLoaderLifecycle, getTestMethod, resetLogLevels, setLogLevel, setName, setTestMethod
public BaseMaintenanceDocumentTest()
public void setUp() throws Exception
setUp
in class KRADTestCase
Exception
public void setUpBeforeTest()
protected String getDocumentTypeName()
protected String getInitiatorPrincipalName()
protected void setupNewAccountMaintDoc(MaintenanceDocument document)
document
- - the maintenance document being testedprotected abstract Object getNewMaintainableObject()
protected abstract Object getOldMaintainableObject()
protected void setupEditAccountMaintDoc(MaintenanceDocument document)
document
- - the maintenance document being testedpublic void test_NewDoc()
public void test_EditDoc()
public void test_CopyDoc()
public void test_SaveNewDoc() throws WorkflowException
WorkflowException
public MaintenanceDocument getDocument()
getDocumentTypeName()
public void setDocument(MaintenanceDocument document)
document
- - the maintenance documentCopyright © 2005–2016 The Kuali Foundation. All rights reserved.