org.kuali.rice.ksb.messaging.exceptionhandling
Class ExceptionMessagingTest

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.ksb.test.KSBTestCase
                          extended by org.kuali.rice.ksb.messaging.exceptionhandling.ExceptionMessagingTest
All Implemented Interfaces:
MethodAware

public class ExceptionMessagingTest
extends KSBTestCase

Tests various exception messaging cases Millis to live - that a message with no home is still sending messages while it's time to live hasn't expired Retry count - that a message configured with a retry count will send x number of messages before being marked exception Being marked as exception - that a message in exception is in the route log and marked with a status of 'E' Defuault retry count - that a message configured with no retry or time to live is retry the default number of times as noted in an app constant and a class default if that constant is not a number or doesn't exist App Constant to determine the default time increment works (we need this to effectively test anyway) Things work without the timeincrement constant in place

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
 
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
ExceptionMessagingTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testTimeToLive()
          test that service is in queue marked 'E' when the time to live is expired.
 
Methods inherited from class org.kuali.rice.ksb.test.KSBTestCase
disableJta, getPerTestLifecycles, getSpringContextResourceLoader, getTestClient1, getTestClient2, setSpringContextResourceLoader, startClient1, startClient2
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestTablesNotToClear, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles
 
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, getLoadApplicationLifecycle, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getSuiteLifecycles, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, 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
 

Constructor Detail

ExceptionMessagingTest

public ExceptionMessagingTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class KSBTestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class RiceTestCase
Throws:
Exception

testTimeToLive

public void testTimeToLive()
                    throws Exception
test that service is in queue marked 'E' when the time to live is expired.

Throws:
Exception


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