org.kuali.rice.krad.workflow
Class SearchAttributeIndexRequestTest
java.lang.Object
org.kuali.rice.test.BaseRiceTestCase
org.kuali.rice.test.RiceTestCase
org.kuali.rice.test.RiceInternalSuiteDataTestCase
org.kuali.rice.test.BaseModuleTestCase
org.kuali.rice.test.BaselineTestCase
org.kuali.test.KRADTestCase
org.kuali.rice.krad.workflow.SearchAttributeIndexRequestTest
- All Implemented Interfaces:
- MethodAware
public class SearchAttributeIndexRequestTest
- extends KRADTestCase
This is a description of what this class does - jksmith don't forget to fill this in.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Method Summary |
private void |
assertDDSearchableAttributesWork(DocumentType docType,
String principalId,
String fieldName,
Object[] searchValues,
int[] resultSizes)
A convenience method for testing wildcards on data dictionary searchable attributes. |
void |
blanketApproveTest()
Tests that a blanket approved document is indexed correctly |
private SearchAttributeCriteriaComponent |
createSearchAttributeCriteriaComponent(String key,
Object value,
Boolean isLowerBoundValue,
DocumentType docType)
|
private Field |
getFieldByFormKey(DocumentType docType,
String formKey)
|
void |
regularApproveTest()
Tests that a document, which goes through a regular approval process, is indexed correctly |
Methods inherited from class org.kuali.rice.test.RiceTestCase |
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
static org.apache.log4j.Logger LOG
SEARCH_ATTRIBUTE_INDEX_DOCUMENT_TEST_DOC_TYPE
static final String SEARCH_ATTRIBUTE_INDEX_DOCUMENT_TEST_DOC_TYPE
- See Also:
- Constant Field Values
SearchAttributeIndexRequestTest
public SearchAttributeIndexRequestTest()
regularApproveTest
public void regularApproveTest()
throws Exception
- Tests that a document, which goes through a regular approval process, is indexed correctly
- Throws:
Exception
blanketApproveTest
public void blanketApproveTest()
throws Exception
- Tests that a blanket approved document is indexed correctly
- Throws:
Exception
assertDDSearchableAttributesWork
private void assertDDSearchableAttributesWork(DocumentType docType,
String principalId,
String fieldName,
Object[] searchValues,
int[] resultSizes)
throws Exception
- A convenience method for testing wildcards on data dictionary searchable attributes.
- Parameters:
docType
- The document type containing the attributes.principalId
- The ID of the user performing the search.fieldName
- The name of the field on the test document.searchValues
- The search expressions to test. Has to be a String array (for regular fields) or a String[] array (for multi-select fields).resultSizes
- The number of expected documents to be returned by the search; use -1 to indicate that an error should have occurred.
- Throws:
Exception
createSearchAttributeCriteriaComponent
private SearchAttributeCriteriaComponent createSearchAttributeCriteriaComponent(String key,
Object value,
Boolean isLowerBoundValue,
DocumentType docType)
getFieldByFormKey
private Field getFieldByFormKey(DocumentType docType,
String formKey)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.