org.kuali.rice.kew.server
Class DTOConverterTest

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

public class DTOConverterTest
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
private static String APPLICATION_CONTENT
           
private static String ATTRIBUTE_CONTENT
           
private static String DOCUMENT_CONTENT
           
private static String SEARCHABLE_CONTENT
           
 
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
DTOConverterTest()
           
 
Method Summary
private  void assertContent(DocumentContentDTO contentVO, String attributeContent, String searchableContent, String applicationContent)
           
private  String constructContent(String type, String content)
           
private  String constructContent(String attributeContent, String searchableContent, String applicationContent)
           
 void testBuildUpdatedDocumentContent()
          Tests the conversion of a DocumentContentVO object into an XML String.
 void testConvertActionItem()
           
 void testConvertActionRequest()
           
 void testConvertActionTaken()
           
 void testConvertDocumentContent()
          Tests the conversion of a String into a DocumentContentVO object which should split the String into it's 3 distinct components.
 
Methods inherited from class org.kuali.rice.kew.test.KEWTestCase
getGroupIdForName, getLoadApplicationLifecycle, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadTestData, 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
 

Field Detail

DOCUMENT_CONTENT

private static final String DOCUMENT_CONTENT
See Also:
Constant Field Values

ATTRIBUTE_CONTENT

private static final String ATTRIBUTE_CONTENT
See Also:
Constant Field Values

SEARCHABLE_CONTENT

private static final String SEARCHABLE_CONTENT
See Also:
Constant Field Values

APPLICATION_CONTENT

private static final String APPLICATION_CONTENT
See Also:
Constant Field Values
Constructor Detail

DTOConverterTest

public DTOConverterTest()
Method Detail

testConvertDocumentContent

public void testConvertDocumentContent()
                                throws Exception
Tests the conversion of a String into a DocumentContentVO object which should split the String into it's 3 distinct components.

Throws:
Exception

testBuildUpdatedDocumentContent

public void testBuildUpdatedDocumentContent()
                                     throws Exception
Tests the conversion of a DocumentContentVO object into an XML String. Includes generating content for any attributes which are on the DocumentContentVO object. TODO there is some crossover between this test and the DocumentContentTest, do we really need both of them???

Throws:
Exception

constructContent

private String constructContent(String type,
                                String content)

constructContent

private String constructContent(String attributeContent,
                                String searchableContent,
                                String applicationContent)

assertContent

private void assertContent(DocumentContentDTO contentVO,
                           String attributeContent,
                           String searchableContent,
                           String applicationContent)

testConvertActionItem

public void testConvertActionItem()
                           throws Exception
Throws:
Exception

testConvertActionRequest

public void testConvertActionRequest()
                              throws Exception
Throws:
Exception

testConvertActionTaken

public void testConvertActionTaken()
                            throws Exception
Throws:
Exception


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