org.kuali.rice.kew.routemanager
Class ExceptionRoutingTest

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

public class ExceptionRoutingTest
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
 
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
ExceptionRoutingTest()
           
 
Method Summary
protected  void loadTestData()
           
protected  void setUpAfterDataLoad()
          Default implementation does nothing.
 void testExceptionInTransitionFromStart()
          this tests that the document appropriately gets to exception routing if there is a problem when transitioning out of first node
 void testInvalidActionsInExceptionRouting()
          This tests the solution for KULRICE-4493.
 void testParallelExceptionRouting()
           
 void testRequeueOfExceptionDocument()
          Test to verify the fix for KULWF-669.
 void testSequentialExceptionRouting()
           
 
Methods inherited from class org.kuali.rice.kew.test.KEWTestCase
clearCacheManagers, getGroupIdForName, getLoadApplicationLifecycle, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadXmlFile, loadXmlFile, loadXmlFileFromFileSystem, loadXmlStream
 
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, 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

ExceptionRoutingTest

public ExceptionRoutingTest()
Method Detail

loadTestData

protected void loadTestData()
                     throws Exception
Overrides:
loadTestData in class KEWTestCase
Throws:
Exception

setUpAfterDataLoad

protected void setUpAfterDataLoad()
                           throws Exception
Description copied from class: KEWTestCase
Default implementation does nothing. Subclasses should override this method if they want to perform setup work inside of a database transaction.

Overrides:
setUpAfterDataLoad in class KEWTestCase
Throws:
Exception

testSequentialExceptionRouting

public void testSequentialExceptionRouting()
                                    throws Exception
Throws:
Exception

testInvalidActionsInExceptionRouting

public void testInvalidActionsInExceptionRouting()
                                          throws Exception
This tests the solution for KULRICE-4493. Essentially, the problem was that when the workflow engine would transition the document to exception status it would invoke the post processor. If invoking the post processor raised an exception, that would cause the transaction to get rolled back and the document would get "stuck" in the ENROUTE state with no pending requests.

Throws:
Exception

testParallelExceptionRouting

public void testParallelExceptionRouting()
                                  throws Exception
Throws:
Exception

testExceptionInTransitionFromStart

public void testExceptionInTransitionFromStart()
                                        throws Exception
this tests that the document appropriately gets to exception routing if there is a problem when transitioning out of first node

Throws:
Exception

testRequeueOfExceptionDocument

public void testRequeueOfExceptionDocument()
                                    throws Exception
Test to verify the fix for KULWF-669. This tests that if we requeue an exception document (through the RouteQueueService) that it doesn't transition out of exception routing. Then check that, if we complete it, it properly transitions out of exception routing.

Throws:
Exception


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