org.kuali.test
Class BaseMaintenanceDocumentTest

java.lang.Object
  extended by org.kuali.rice.test.BaseRiceTestCase
      extended by org.kuali.rice.test.RiceTestCase
          extended by org.kuali.rice.test.RiceInternalSuiteDataTestCase
              extended by org.kuali.rice.test.BaseModuleTestCase
                  extended by org.kuali.rice.test.BaselineTestCase
                      extended by org.kuali.test.KRADTestCase
                          extended by org.kuali.test.BaseMaintenanceDocumentTest
All Implemented Interfaces:
MethodAware
Direct Known Subclasses:
AccountManagerMaintenanceDocumentTest, CampusTypeMaintenanceDocumentTest, CountryMaintenanceDocumentTest, CountyMaintenanceDocumentTest

public abstract class BaseMaintenanceDocumentTest
extends KRADTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
 
Fields inherited from class org.kuali.rice.test.BaselineTestCase
dirty
 
Fields inherited from class org.kuali.rice.test.BaseModuleTestCase
LOG, moduleName
 
Fields inherited from class org.kuali.rice.test.RiceTestCase
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
 
Fields inherited from class org.kuali.rice.test.BaseRiceTestCase
log, method
 
Constructor Summary
BaseMaintenanceDocumentTest()
           
 
Method Summary
 MaintenanceDocument getDocument()
           
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)
           
 void setUp()
           
 void setUpBeforeTest()
           
protected  void setupEditAccountMaintDoc(MaintenanceDocument document)
          populate maintenance document with objects for editing
protected  void setupNewAccountMaintDoc(MaintenanceDocument document)
           
 void test_CopyDoc()
           
 void test_EditDoc()
           
 void test_NewDoc()
           
 void test_SaveNewDoc()
           
 
Methods inherited from class org.kuali.test.KRADTestCase
getLoadApplicationLifecycle, getSuiteLifecycles, loadSuiteTestData
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles
 
Methods inherited from class org.kuali.rice.test.BaseModuleTestCase
getModuleName
 
Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
 
Methods inherited from class org.kuali.rice.test.BaseRiceTestCase
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseMaintenanceDocumentTest

public BaseMaintenanceDocumentTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class BaselineTestCase
Throws:
Exception

setUpBeforeTest

public void setUpBeforeTest()

getDocumentTypeName

protected String getDocumentTypeName()
Override this method to provide different value

Returns:
the document type name to use

getInitiatorPrincipalName

protected String getInitiatorPrincipalName()
Override this method to provide different initiator

Returns:
the principal name to use as the initiator for the specified document type

setupNewAccountMaintDoc

protected void setupNewAccountMaintDoc(MaintenanceDocument document)

getNewMaintainableObject

protected abstract Object getNewMaintainableObject()
Returns:
an object to set as the new maintainable object

getOldMaintainableObject

protected abstract Object getOldMaintainableObject()
Returns:
an object to set as the old maintainable object

setupEditAccountMaintDoc

protected void setupEditAccountMaintDoc(MaintenanceDocument document)
populate maintenance document with objects for editing

Parameters:
document - - the maintenance document being tested

test_NewDoc

public void test_NewDoc()

test_EditDoc

public void test_EditDoc()

test_CopyDoc

public void test_CopyDoc()

test_SaveNewDoc

public void test_SaveNewDoc()
                     throws WorkflowException
Throws:
WorkflowException

getDocument

public MaintenanceDocument getDocument()

setDocument

public void setDocument(MaintenanceDocument document)


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.