org.kuali.rice.kew.notification
Class NotificationServiceTest
java.lang.Object
org.kuali.rice.test.BaseRiceTestCase
org.kuali.rice.test.RiceTestCase
org.kuali.rice.test.RiceInternalSuiteDataTestCase
org.kuali.rice.test.BaseModuleTestCase
org.kuali.rice.test.BaselineTestCase
org.kuali.rice.kew.test.KEWTestCase
org.kuali.rice.kew.notification.NotificationServiceTest
- All Implemented Interfaces:
- MethodAware
public class NotificationServiceTest
- extends KEWTestCase
Methods inherited from class org.kuali.rice.kew.test.KEWTestCase |
getGroupIdForName, getLoadApplicationLifecycle, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadXmlFile, loadXmlFile, loadXmlFileFromFileSystem, loadXmlStream, setUpAfterDataLoad |
Methods inherited from class org.kuali.rice.test.RiceTestCase |
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotificationServiceTest
public NotificationServiceTest()
loadTestData
protected void loadTestData()
throws Exception
- Overrides:
loadTestData
in class KEWTestCase
- Throws:
Exception
testNoDuplicateEmails
public void testNoDuplicateEmails()
throws Exception
- Tests that when a user is routed to twice at the same time that only email is sent to them.
- Throws:
Exception
testEmailPreferences
public void testEmailPreferences()
throws Exception
- Tests that the notification preferences for emails work properly. There are four different preferences:
1) Email notification type (none, immediate, daily, weekly) - defaults to immediate
2) Send primary delegation notifications - defaults to true
3) Send secondary delegation notifications - defaults to false
- Throws:
Exception
testDocumentTypeNotificationFromAddress
public void testDocumentTypeNotificationFromAddress()
throws Exception
- Tests that the fromNotificationAddress on the document type works properly. Used to test implementation of KULWF-628.
- Throws:
Exception
assertDefaultNotificationPreferences
private void assertDefaultNotificationPreferences(String principalId)
throws Exception
- Throws:
Exception
getPreferencesService
private PreferencesService getPreferencesService()
getMockEmailService
private MockEmailNotificationService getMockEmailService()
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.