org.kuali.rice.kcb.test
Class BusinessObjectTestCase

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.rice.kcb.test.KCBTestCase
                          extended by org.kuali.rice.kcb.test.BusinessObjectTestCase
All Implemented Interfaces:
MethodAware
Direct Known Subclasses:
MessageDeliveryServiceTest, MessageServiceTest, RecipientPreferenceDaoTest, RecipientPreferenceTest

public abstract class BusinessObjectTestCase
extends KCBTestCase

This base class for testing CRUD operations on BOs

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
protected  GenericDao businessObjectDao
           
 
Fields inherited from class org.kuali.rice.kcb.test.KCBTestCase
services
 
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
BusinessObjectTestCase()
           
 
Method Summary
 void setUp()
           
abstract  void testCreate()
          This method should be overridden to test creation
abstract  void testDelete()
          This method should be overridden to test delete
 void testDuplicateCreate()
          This method should be overridden to test duplicate creation
 void testInvalidCreate()
          This method should be overridden to test invalid creation
 void testInvalidDelete()
          This method should be overridden to test an invalid delete
 void testInvalidRead()
          This method should be overridden to test an invalid retrieval
 void testInvalidUpdate()
          This method should be overridden to test an invalid update
 void testReadById()
          This method should be overridden to test retrieval by id
 void testReadByQuery()
          This method should be overridden to test retrieval
abstract  void testUpdate()
          This method should be overridden to test updating
 
Methods inherited from class org.kuali.rice.kcb.test.KCBTestCase
getLoadApplicationLifecycle
 
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, loadSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getSuiteLifecycles, 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
 

Field Detail

businessObjectDao

protected GenericDao businessObjectDao
Constructor Detail

BusinessObjectTestCase

public BusinessObjectTestCase()
Method Detail

setUp

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

testCreate

public abstract void testCreate()
                         throws Exception
This method should be overridden to test creation

Throws:
Exception

testInvalidCreate

public void testInvalidCreate()
                       throws Exception
This method should be overridden to test invalid creation

Throws:
Exception

testDuplicateCreate

public void testDuplicateCreate()
                         throws Exception
This method should be overridden to test duplicate creation

Throws:
Exception

testReadById

public void testReadById()
                  throws Exception
This method should be overridden to test retrieval by id

Throws:
Exception

testReadByQuery

public void testReadByQuery()
                     throws Exception
This method should be overridden to test retrieval

Throws:
Exception

testInvalidRead

public void testInvalidRead()
                     throws Exception
This method should be overridden to test an invalid retrieval

Throws:
Exception

testUpdate

public abstract void testUpdate()
                         throws Exception
This method should be overridden to test updating

Throws:
Exception

testInvalidUpdate

public void testInvalidUpdate()
                       throws Exception
This method should be overridden to test an invalid update

Throws:
Exception

testDelete

public abstract void testDelete()
                         throws Exception
This method should be overridden to test delete

Throws:
Exception

testInvalidDelete

public void testInvalidDelete()
                       throws Exception
This method should be overridden to test an invalid delete

Throws:
Exception


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