org.kuali.rice.kew.docsearch
Class DocumentSearchTestBase

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
All Implemented Interfaces:
MethodAware
Direct Known Subclasses:
DeprecatedDocumentTagsTest, SearchableAttributeTest, StandardGenericXMLSearchableAttributeRangesTest, StandardGenericXMLSearchableAttributeTest

public class DocumentSearchTestBase
extends KEWTestCase

This is a base class used for document search unit test classes to consolidate some helper methods

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

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
DocumentSearchTestBase()
           
 
Method Summary
protected  void addSearchableAttribute(DocumentSearchCriteria.Builder criteria, String name, String value)
           
protected  void addSearchableAttribute(DocumentSearchCriteria.Builder criteria, String name, String[] values)
           
protected static ExtensionDefinition createExtensionDefinition(String attrName)
          Creates an ExtensionDefinition for the specified attribute with XML config pulled from the db
protected  String createSearchableAttributeRange(String lowerBound, String upperBound, boolean upperBoundInclusive)
           
protected  StandardGenericXMLSearchableAttribute getAttribute(String name)
          This method is used by tests that use xml attributes
 
Methods inherited from class org.kuali.rice.kew.test.KEWTestCase
clearCacheManagers, 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
 

Constructor Detail

DocumentSearchTestBase

public DocumentSearchTestBase()
Method Detail

getAttribute

protected StandardGenericXMLSearchableAttribute getAttribute(String name)
This method is used by tests that use xml attributes

Parameters:
name - - name of the attribute to retrieve
Returns:

addSearchableAttribute

protected void addSearchableAttribute(DocumentSearchCriteria.Builder criteria,
                                      String name,
                                      String value)

addSearchableAttribute

protected void addSearchableAttribute(DocumentSearchCriteria.Builder criteria,
                                      String name,
                                      String[] values)

createSearchableAttributeRange

protected String createSearchableAttributeRange(String lowerBound,
                                                String upperBound,
                                                boolean upperBoundInclusive)

createExtensionDefinition

protected static ExtensionDefinition createExtensionDefinition(String attrName)
Creates an ExtensionDefinition for the specified attribute with XML config pulled from the db



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