org.kuali.rice.ken.services.impl
Class NotificationServiceImplTest

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
                          extended by org.kuali.rice.ken.services.impl.NotificationServiceImplTest
All Implemented Interfaces:
MethodAware

public class NotificationServiceImplTest
extends KENTestCase

This class tests the notification service impl.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.ken.test.KENTestCase
KENTestCase.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.ken.test.KENTestCase
services, 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
NotificationServiceImplTest()
           
 
Method Summary
 void testDismiss()
          Tests that dismissing a single message delivery for a given user, also removes all other message deliveries for that user that were generated for the same notification
 void testGetNotification_nonExistentNotification()
           
 void testGetNotification_validNotification()
           
 void testGetNotificationsForRecipientByType_invalidInput()
           
 void testGetNotificationsForRecipientByType_validInput()
           
 void testSendNotificationAsXml_invalidInput()
           
 void testSendNotificationAsXml_producerNotAuthorized()
           
 void testSendNotificationAsXml_validInput()
           
 
Methods inherited from class org.kuali.rice.ken.test.KENTestCase
disableQuartzJobs, enableQuartzJobs, getLoadApplicationLifecycle, getNotificationPerTestLifecycles, getPerTestLifecycles, getPerTestTablesToClear, getSuiteLifecycles, loadDefaultTestData, loadPerTestData, 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
 

Constructor Detail

NotificationServiceImplTest

public NotificationServiceImplTest()
Method Detail

testGetNotification_validNotification

public void testGetNotification_validNotification()

testGetNotification_nonExistentNotification

public void testGetNotification_nonExistentNotification()

testGetNotificationsForRecipientByType_validInput

public void testGetNotificationsForRecipientByType_validInput()

testGetNotificationsForRecipientByType_invalidInput

public void testGetNotificationsForRecipientByType_invalidInput()

testSendNotificationAsXml_validInput

public void testSendNotificationAsXml_validInput()
                                          throws InterruptedException,
                                                 org.quartz.SchedulerException,
                                                 IOException,
                                                 XmlException
Throws:
InterruptedException
org.quartz.SchedulerException
IOException
XmlException

testSendNotificationAsXml_invalidInput

public void testSendNotificationAsXml_invalidInput()
                                            throws IOException
Throws:
IOException

testSendNotificationAsXml_producerNotAuthorized

public void testSendNotificationAsXml_producerNotAuthorized()
                                                     throws IOException,
                                                            XmlException
Throws:
IOException
XmlException

testDismiss

public void testDismiss()
                 throws InterruptedException
Tests that dismissing a single message delivery for a given user, also removes all other message deliveries for that user that were generated for the same notification

Throws:
InterruptedException


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