public abstract class BaseMaintenanceDocumentTest extends KRADTestCase
It provides test methods for setting up, editing, saving and copying a maintenance document
KRADTestCase.BootstrapTest, KRADTestCase.LegacyBaselineTestCase.BaselineMode, BaselineTestCase.Modedd, kradTestHarnessSpringResourceLoaderdirtyLOG, moduleNameDEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycleslog, 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, tearDownLegacyContextgetClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecyclesgetModuleNamegetKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestDataconfigureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecyclesgetName, getPerTestDataLoaderLifecycle, getTestMethod, resetLogLevels, setLogLevel, setName, setTestMethodpublic BaseMaintenanceDocumentTest()
public void setUp() throws Exception
setUp in class KRADTestCaseExceptionpublic 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
WorkflowExceptionpublic MaintenanceDocument getDocument()
getDocumentTypeName()public void setDocument(MaintenanceDocument document)
document - - the maintenance documentCopyright © 2005–2016 The Kuali Foundation. All rights reserved.