org.kuali.rice.kew.mail
Class EmailReminderLifecycleTest

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.kew.test.KEWTestCase
                          extended by org.kuali.rice.kew.mail.EmailReminderLifecycleTest
All Implemented Interfaces:
MethodAware

public class EmailReminderLifecycleTest
extends KEWTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.kew.test.KEWTestCase
KEWTestCase.ClearCacheLifecycle
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
private static String DEFAULT_EMAIL_CRON_DAILY
           
private static String DEFAULT_EMAIL_CRON_WEEKLY
           
private  EmailReminderLifecycle emailReminderLifecycle
           
 
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
EmailReminderLifecycleTest()
           
 
Method Summary
private  MockEmailNotificationService getMockEmailService()
           
 void tearDown()
          This method used to reset email sending to false for both daily and weekly reminders
 void testDailyEmails()
           
 void testWeeklyEmails()
           
 
Methods inherited from class org.kuali.rice.kew.test.KEWTestCase
getGroupIdForName, getLoadApplicationLifecycle, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadTestData, loadXmlFile, loadXmlFile, loadXmlFileFromFileSystem, loadXmlStream, setUpAfterDataLoad
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, 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
 
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
 
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

DEFAULT_EMAIL_CRON_WEEKLY

private static final String DEFAULT_EMAIL_CRON_WEEKLY
See Also:
Constant Field Values

DEFAULT_EMAIL_CRON_DAILY

private static final String DEFAULT_EMAIL_CRON_DAILY
See Also:
Constant Field Values

emailReminderLifecycle

private EmailReminderLifecycle emailReminderLifecycle
Constructor Detail

EmailReminderLifecycleTest

public EmailReminderLifecycleTest()
Method Detail

tearDown

public void tearDown()
              throws Exception
This method used to reset email sending to false for both daily and weekly reminders

Overrides:
tearDown in class RiceTestCase
Throws:
Exception
See Also:
RiceTestCase.tearDown()

testDailyEmails

public void testDailyEmails()
                     throws Exception
Throws:
Exception

testWeeklyEmails

public void testWeeklyEmails()
                      throws Exception
Throws:
Exception

getMockEmailService

private MockEmailNotificationService getMockEmailService()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.