org.kuali.rice.ken.test
Class KENTestCase

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.ken.test.KENTestCase
All Implemented Interfaces:
MethodAware
Direct Known Subclasses:
BusinessObjectDaoTestCaseBase, KEWIntegrationTest, NotificationAuthorizationServiceImplTest, NotificationContentTypeServiceImplTest, NotificationMessageContentServiceImplTest, NotificationMessageDeliveryAutoRemovalServiceImplTest, NotificationMessageDeliveryResolverServiceImplTest, NotificationMessageDeliveryServiceImplTest, NotificationRecipientServiceKimImplTest, NotificationSenderFormPostProcessorTest, NotificationServiceImplTest, UserPreferenceServiceImplTest, XPathTest

public abstract class KENTestCase
extends BaselineTestCase

Base test case for KEN that extends RiceTestCase

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

Nested Class Summary
 class KENTestCase.ClearCacheLifecycle
          Flushes the KEW cache(s)
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
protected  SpringNotificationServiceLocator services
           
protected  org.springframework.transaction.PlatformTransactionManager transactionManager
           
 
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
KENTestCase()
           
 
Method Summary
protected  void disableQuartzJobs()
          This method makes sure to disable the Quartz scheduler
protected  void enableQuartzJobs()
          This method enables the Quartz scheduler
protected  Lifecycle getLoadApplicationLifecycle()
           
protected  List<Lifecycle> getNotificationPerTestLifecycles()
           
protected  List<Lifecycle> getPerTestLifecycles()
           
protected  List<String> getPerTestTablesToClear()
          Returns the List of tables that should be cleared on every test run.
protected  List<Lifecycle> getSuiteLifecycles()
           
protected  void loadDefaultTestData()
          By default this loads the "default" data set from the DefaultTestData.sql and DefaultTestData.xml files.
protected  void loadPerTestData()
          Initiates loading of per-test data
protected  void setUpAfterDataLoad()
           
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestTablesNotToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUp
 
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, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, 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

services

protected SpringNotificationServiceLocator services

transactionManager

protected org.springframework.transaction.PlatformTransactionManager transactionManager
Constructor Detail

KENTestCase

public KENTestCase()
Method Detail

getSuiteLifecycles

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

getLoadApplicationLifecycle

protected Lifecycle getLoadApplicationLifecycle()
Overrides:
getLoadApplicationLifecycle in class RiceTestCase

getPerTestLifecycles

protected List<Lifecycle> getPerTestLifecycles()
Overrides:
getPerTestLifecycles in class BaselineTestCase

getNotificationPerTestLifecycles

protected List<Lifecycle> getNotificationPerTestLifecycles()

loadDefaultTestData

protected void loadDefaultTestData()
                            throws Exception
By default this loads the "default" data set from the DefaultTestData.sql and DefaultTestData.xml files. Subclasses can override this to change this behaviour

Throws:
Exception

getPerTestTablesToClear

protected List<String> getPerTestTablesToClear()
Returns the List of tables that should be cleared on every test run.

Overrides:
getPerTestTablesToClear in class BaselineTestCase

setUpAfterDataLoad

protected void setUpAfterDataLoad()
                           throws Exception
Throws:
Exception

loadPerTestData

protected void loadPerTestData()
                        throws Exception
Initiates loading of per-test data

Overrides:
loadPerTestData in class RiceTestCase
Throws:
Exception

disableQuartzJobs

protected void disableQuartzJobs()
                          throws org.quartz.SchedulerException
This method makes sure to disable the Quartz scheduler

Throws:
org.quartz.SchedulerException

enableQuartzJobs

protected void enableQuartzJobs()
                         throws org.quartz.SchedulerException
This method enables the Quartz scheduler

Throws:
org.quartz.SchedulerException


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