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

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.NotificationMessageDeliveryResolverServiceImplTest
All Implemented Interfaces:
MethodAware

@PerTestUnitTestData(value=@UnitTestData(order=SQL_STATEMENTS,sqlStatements={@UnitTestSql(value="insert into KREN_RECIP_DELIV_T (RECIP_DELIV_ID, RECIP_ID, CHNL, NM, VER_NBR) values (1, \'testuser6\', \'KEW\', \'mock\', 0)"),@UnitTestSql(value="insert into KREN_RECIP_DELIV_T (RECIP_DELIV_ID, RECIP_ID, CHNL, NM, VER_NBR) values (2, \'testuser1\', \'KEW\', \'mock\', 0)"),@UnitTestSql(value="insert into KREN_RECIP_DELIV_T (RECIP_DELIV_ID, RECIP_ID, CHNL, NM, VER_NBR) values (3, \'testuser2\', \'KEW\', \'mock\', 0)"),@UnitTestSql(value="insert into KREN_RECIP_DELIV_T (RECIP_DELIV_ID, RECIP_ID, CHNL, NM, VER_NBR) values (4, \'quickstart\', \'KEW\', \'mock\', 0)"),@UnitTestSql(value="insert into KREN_RECIP_DELIV_T (RECIP_DELIV_ID, RECIP_ID, CHNL, NM, VER_NBR) values (5, \'testuser5\', \'KEW\', \'mock\', 0)"),@UnitTestSql(value="insert into KREN_RECIP_DELIV_T (RECIP_DELIV_ID, RECIP_ID, CHNL, NM, VER_NBR) values (6, \'testuser4\', \'KEW\', \'mock\', 0)")}))
public class NotificationMessageDeliveryResolverServiceImplTest
extends KENTestCase

Tests NotificationMessageDeliveryResolverServiceImpl

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
NotificationMessageDeliveryResolverServiceImplTest()
           
 
Method Summary
protected  void assertProcessResults()
           
protected  org.kuali.rice.ken.services.impl.NotificationMessageDeliveryResolverServiceImplTest.TestNotificationMessageDeliveryResolverService getResolverService()
           
 void testResolveNotificationMessageDeliveries()
          Test resolution of notifications This test resolves UNRESOLVED notification ids #3 and #4 in the test data.
 void testResolverConcurrency()
          Test concurrent resolution of notifications
 
Methods inherited from class org.kuali.rice.ken.test.KENTestCase
disableQuartzJobs, enableQuartzJobs, getLoadApplicationLifecycle, getNotificationPerTestLifecycles, getPerTestLifecycles, getPerTestTablesToClear, getSuiteLifecycles
 
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, 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

NotificationMessageDeliveryResolverServiceImplTest

public NotificationMessageDeliveryResolverServiceImplTest()
Method Detail

getResolverService

protected org.kuali.rice.ken.services.impl.NotificationMessageDeliveryResolverServiceImplTest.TestNotificationMessageDeliveryResolverService getResolverService()

assertProcessResults

protected void assertProcessResults()

testResolveNotificationMessageDeliveries

public void testResolveNotificationMessageDeliveries()
                                              throws Exception
Test resolution of notifications This test resolves UNRESOLVED notification ids #3 and #4 in the test data. An artificial exception is generated for notification #3. For notification #4, the recipients are defined to be the Rice Team and testuser1. This results in 8 recipient resolutions, two of which are Email deliveries for jaf30 and ag266. If you change the test data this test should be updated to reflect the expected results.

Throws:
Exception

testResolverConcurrency

public void testResolverConcurrency()
                             throws InterruptedException
Test concurrent resolution of notifications

Throws:
InterruptedException


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