org.kuali.test
Class BaseMaintenanceDocumentTest
java.lang.Object
   org.kuali.rice.test.BaseRiceTestCase
org.kuali.rice.test.BaseRiceTestCase
       org.kuali.rice.test.RiceTestCase
org.kuali.rice.test.RiceTestCase
           org.kuali.rice.test.RiceInternalSuiteDataTestCase
org.kuali.rice.test.RiceInternalSuiteDataTestCase
               org.kuali.rice.test.BaseModuleTestCase
org.kuali.rice.test.BaseModuleTestCase
                   org.kuali.rice.test.BaselineTestCase
org.kuali.rice.test.BaselineTestCase
                       org.kuali.test.KRADTestCase
org.kuali.test.KRADTestCase
                           org.kuali.test.BaseMaintenanceDocumentTest
org.kuali.test.BaseMaintenanceDocumentTest
- All Implemented Interfaces: 
- MethodAware
- Direct Known Subclasses: 
- AccountManagerMaintenanceDocumentTest, CampusTypeMaintenanceDocumentTest, CountryMaintenanceDocumentTest, TravelAccountMaintenanceDocumentTest
- public abstract class BaseMaintenanceDocumentTest 
- extends KRADTestCase
BaseMaintenanceDocumentTest is a base class for testing maintenance documents
  
It provides test methods for setting up, editing, saving and copying a maintenance document
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
| 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, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
BaseMaintenanceDocumentTest
public BaseMaintenanceDocumentTest()
setUp
public void setUp()
           throws Exception
- 
- Overrides:
- setUpin 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)
- setup a new maintenance document
 
- 
- Parameters:
- document- - the maintenance document being tested
 
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()
- gets the maintenance document that is created in the constructor
 
- 
- Returns:
- a maintenance document of the type returned by getDocumentTypeName()
 
setDocument
public void setDocument(MaintenanceDocument document)
- set the maintenance document to use in the test
 
- 
- Parameters:
- document- - the maintenance document
 
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.