org.kuali.rice.kim.test
Class KIMTestCase

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.kim.test.KIMTestCase
All Implemented Interfaces:
MethodAware
Direct Known Subclasses:
AuthorizationServiceImplTest, GroupServiceImplTest, GroupServiceTest, GroupUpdateServiceImplTest, IdentityArchiveServiceTest, IdentityServiceImplTest, IdentityServiceTest, KIMServiceLocatorInternalTest, PermissionServiceTest, PersonServiceImplTest, RoleServiceImplTest, RoleServiceTest, UiDocumentServiceImplTest

public abstract class KIMTestCase
extends BaselineTestCase

This is test base that should be used for all KIM unit tests. All non-web unit tests for KIM should extend this base class.

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

Nested Class Summary
 class KIMTestCase.ClearCacheLifecycle
           
 
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
KIMTestCase()
           
 
Method Summary
protected  KimType getDefaultKimType()
           
protected  PermissionTemplateBo getDefaultPermissionTemplate()
           
protected  String getIdFromSequence(String sequenceName)
           
protected  Lifecycle getLoadApplicationLifecycle()
           
protected  String getModuleName()
           
protected  String getNewRoleId()
           
protected  String getNewRoleMemberId()
           
protected  String getNewRolePermissionId()
           
protected  List<Lifecycle> getPerTestLifecycles()
          Override the standard per-test lifecycles to prepend ClearDatabaseLifecycle and ClearCacheLifecycle
protected  List<String> getPerTestTablesNotToClear()
           
protected  List<Lifecycle> getSuiteLifecycles()
           
protected  void loadSuiteTestData()
           
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUp
 
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

KIMTestCase

public KIMTestCase()
Method Detail

getSuiteLifecycles

protected List<Lifecycle> getSuiteLifecycles()
Overrides:
getSuiteLifecycles in class RiceTestCase

loadSuiteTestData

protected void loadSuiteTestData()
                          throws Exception
Overrides:
loadSuiteTestData in class RiceInternalSuiteDataTestCase
Throws:
Exception

getLoadApplicationLifecycle

protected Lifecycle getLoadApplicationLifecycle()
Overrides:
getLoadApplicationLifecycle in class RiceTestCase

getPerTestLifecycles

protected List<Lifecycle> getPerTestLifecycles()
Override the standard per-test lifecycles to prepend ClearDatabaseLifecycle and ClearCacheLifecycle

Overrides:
getPerTestLifecycles in class BaselineTestCase
See Also:
RiceTestCase.getPerTestLifecycles()

getPerTestTablesNotToClear

protected List<String> getPerTestTablesNotToClear()
Overrides:
getPerTestTablesNotToClear in class BaselineTestCase

getModuleName

protected String getModuleName()
Overrides:
getModuleName in class BaseModuleTestCase
See Also:
RiceTestCase.getModuleName()

getDefaultKimType

protected KimType getDefaultKimType()

getDefaultPermissionTemplate

protected PermissionTemplateBo getDefaultPermissionTemplate()

getNewRoleId

protected String getNewRoleId()

getNewRoleMemberId

protected String getNewRoleMemberId()

getNewRolePermissionId

protected String getNewRolePermissionId()

getIdFromSequence

protected String getIdFromSequence(String sequenceName)


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