org.kuali.rice.kew.postprocessor
Class PostProcessorTest

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

public class PostProcessorTest
extends KEWTestCase


Nested Class Summary
static class PostProcessorTest.DocumentModifyingPostProcessor
           
static class PostProcessorTest.GetDocumentIdsToLockPostProcessor
           
 
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
PostProcessorTest()
           
 
Method Summary
protected  String getPrincipalIdForName(String principalName)
           
protected  void loadTestData()
           
 void testEmptyPostProcessor()
          Tests that modifying a document in the post processor works.
 void testGetDocumentIdsToLock()
          Tests the locking of additional documents from the Post Processor.
 void testModifyDocumentInPostProcessor()
          Tests that modifying a document in the post processor works.
 
Methods inherited from class org.kuali.rice.kew.test.KEWTestCase
clearCacheManagers, getGroupIdForName, getLoadApplicationLifecycle, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalNameForId, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadXmlFile, loadXmlFile, loadXmlFileFromFileSystem, loadXmlStream, setUpAfterDataLoad
 
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

PostProcessorTest

public PostProcessorTest()
Method Detail

loadTestData

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

testModifyDocumentInPostProcessor

public void testModifyDocumentInPostProcessor()
                                       throws Exception
Tests that modifying a document in the post processor works. This test will do a few things: 1) Change the document content in the post processor 2) Send an app specific FYI request to the initiator of the document 3) Modify the document title. This test is meant to expose the bug KULWF-668 where it appears an OptimisticLockException is being thrown after returning from the EPIC post processor.

Throws:
Exception

testEmptyPostProcessor

public void testEmptyPostProcessor()
                            throws Exception
Tests that modifying a document in the post processor works. This test will do a few things: 1) Change the document content in the post processor 2) Send an app specific FYI request to the initiator of the document 3) Modify the document title. This test is meant to test that an empty post processor works. The empty post processor should be handled as a DefaultPostProcessor.

Throws:
Exception

getPrincipalIdForName

protected String getPrincipalIdForName(String principalName)
Overrides:
getPrincipalIdForName in class KEWTestCase

testGetDocumentIdsToLock

public void testGetDocumentIdsToLock()
                              throws Exception
Tests the locking of additional documents from the Post Processor.

Throws:
Exception


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