org.kuali.rice.kew.docsearch.xml
Class StandardGenericXMLSearchableAttributeTest

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.docsearch.DocumentSearchTestBase
                              extended by org.kuali.rice.kew.docsearch.xml.StandardGenericXMLSearchableAttributeTest
All Implemented Interfaces:
MethodAware

public class StandardGenericXMLSearchableAttributeTest
extends DocumentSearchTestBase

Tests the StandardGenericXMLSearchableAttribute. KULWF-654: Tests the resolution to this issue by configuring a CustomActionListAttribute as well as a searchable attribute.


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
StandardGenericXMLSearchableAttributeTest()
           
 
Method Summary
protected  void loadTestData()
           
 void testDocumentSearchAttributeCaseSensitivity()
           
 void testDocumentSearchAttributeWildcarding()
           
 void testDocumentSearchAttributeWildcardingDisallow()
           
 void testRouteDocumentWithInvalidSearchableAttributeContent()
          Tests searching with client-generated documentContent which will not match what the SearchableAttributeOld is configured to look for.
 void testRouteDocumentWithMalformedSearchableAttributeContent()
          Tests searching with client-generated documentContent which is just malformed XML.
 void testRouteDocumentWithMoreInvalidSearchableAttributeContent()
          Tests searching with client-generated documentContent which will not match what the SearchableAttributeOld is configured to look for.
 void testRouteDocumentWithSearchableAttribute()
           
 void testRouteDocumentWithXStreamSearchableAttribute()
          Tests the XStreamSafeEvaluator against searchable attributes to resolve EN-63 and KULWF-723.
 void testSearchableAttributeWithHiddens()
          Tests that the hidding of fields and columns works properly to resolve EN-53.
 void testSearchableAttributeWithQuickfinder()
          Tests the resolution to issues EN-95, KULWF-757, KULOWF-52 whereby the use of a quickfinder is causing NullPointers when searching for documents.
 void testSetApplicationContentXMLRoutedDocument()
           
 void testXMLStandardSearchableAttributesWithDataType()
           
 void testXMLStandardSearchableAttributeWithInvalidValue()
           
 
Methods inherited from class org.kuali.rice.kew.docsearch.DocumentSearchTestBase
addSearchableAttribute, addSearchableAttribute, addSearchableAttributeRange, getAttribute
 
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, 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

StandardGenericXMLSearchableAttributeTest

public StandardGenericXMLSearchableAttributeTest()
Method Detail

loadTestData

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

testXMLStandardSearchableAttributeWithInvalidValue

public void testXMLStandardSearchableAttributeWithInvalidValue()
                                                        throws Exception
Throws:
Exception

testXMLStandardSearchableAttributesWithDataType

public void testXMLStandardSearchableAttributesWithDataType()
                                                     throws Exception
Throws:
Exception

testRouteDocumentWithSearchableAttribute

public void testRouteDocumentWithSearchableAttribute()
                                              throws Exception
Throws:
Exception

testDocumentSearchAttributeWildcarding

public void testDocumentSearchAttributeWildcarding()
                                            throws Exception
Throws:
Exception

testDocumentSearchAttributeWildcardingDisallow

public void testDocumentSearchAttributeWildcardingDisallow()
                                                    throws Exception
Throws:
Exception

testDocumentSearchAttributeCaseSensitivity

public void testDocumentSearchAttributeCaseSensitivity()
                                                throws Exception
Throws:
Exception

testRouteDocumentWithMalformedSearchableAttributeContent

public void testRouteDocumentWithMalformedSearchableAttributeContent()
                                                              throws WorkflowException
Tests searching with client-generated documentContent which is just malformed XML.

Throws:
WorkflowException

testRouteDocumentWithInvalidSearchableAttributeContent

public void testRouteDocumentWithInvalidSearchableAttributeContent()
                                                            throws Exception
Tests searching with client-generated documentContent which will not match what the SearchableAttributeOld is configured to look for. This should pass with zero search results, but should not throw an exception.

Throws:
Exception

testRouteDocumentWithMoreInvalidSearchableAttributeContent

public void testRouteDocumentWithMoreInvalidSearchableAttributeContent()
                                                                throws Exception
Tests searching with client-generated documentContent which will not match what the SearchableAttributeOld is configured to look for. This should pass with zero search results, but should not throw an exception.

Throws:
Exception

testRouteDocumentWithXStreamSearchableAttribute

public void testRouteDocumentWithXStreamSearchableAttribute()
                                                     throws Exception
Tests the XStreamSafeEvaluator against searchable attributes to resolve EN-63 and KULWF-723. This test is pretty much just a copy of testRouteDocumentWithSearchableAttribute using a different document type which defines the same xpath expression, only with embedded XStream "reference" attributes in the XML.

Throws:
Exception

testSearchableAttributeWithQuickfinder

public void testSearchableAttributeWithQuickfinder()
                                            throws Exception
Tests the resolution to issues EN-95, KULWF-757, KULOWF-52 whereby the use of a quickfinder is causing NullPointers when searching for documents.

Throws:
Exception

testSearchableAttributeWithHiddens

public void testSearchableAttributeWithHiddens()
                                        throws Exception
Tests that the hidding of fields and columns works properly to resolve EN-53. TODO this is currently commented out because we can't test this properly through the unit test since the filtering of the column actually happens in the web-tier. Shoudl this be the case? Maybe we need to re-examine when we refactor document search.

Throws:
Exception

testSetApplicationContentXMLRoutedDocument

public void testSetApplicationContentXMLRoutedDocument()
                                                throws Exception
Throws:
Exception


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