public class DocumentSearchTest extends KEWTestCase
KEWTestCase.BootstrapTest, KEWTestCase.ClearCacheLifecycleBaselineTestCase.BaselineMode, BaselineTestCase.ModedirtyLOG, moduleNameDEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycleslog, method| Constructor and Description |
|---|
DocumentSearchTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertDocumentStatus(String documentType,
String principalId,
DocumentStatus status,
int num)
Asserts that there are a certain number of docs in the given status
|
protected void |
assertDocumentStatusCategory(String documentType,
String principalId,
DocumentStatusCategory status,
int num)
Asserts that there are a certain number of docs in the given document status category
|
protected void |
assertDocumentStatuses(String documentType,
String principalId,
int initiated,
int saved,
int enroute,
int exception,
int processed,
int finl,
int canceled,
int disapproved)
Asserts that documents are present in the given statuses, including document status categories (this requires that
no docs are in the system prior to routing of the test docs)
|
protected void |
loadTestData() |
protected static String |
marshall(DocumentSearchCriteria criteria) |
protected String |
routeTestDoc2()
"Saves" a single instance of a "SearchDocType2" document and returns it's id.
|
protected String[] |
routeTestDocs()
Routes some test docs for searching
|
protected void |
setUpAfterDataLoad()
Default implementation does nothing.
|
void |
testAdditionalDocumentTypesCriteria() |
void |
testDocSearch_appDocStatuses() |
void |
testDocSearch_criteriaModified() |
void |
testDocSearch_fetchMoreIterationLimit() |
void |
testDocSearch_maxResults() |
void |
testDocSearch_maxResultsCap() |
void |
testDocSearch_maxResultsIsNull() |
void |
testDocSearch_maxResultsIsZero() |
void |
testDocSearch_MissingInitiator()
Test for https://test.kuali.org/jira/browse/KULRICE-1968 - Document search fails when users are missing
Tests that we can safely search on docs whose initiator no longer exists in the identity management system
This test searches by doc type name criteria.
|
void |
testDocSearch_RouteNodeName() |
void |
testDocSearch_SearchOnMissingInitiator()
Test for https://test.kuali.org/jira/browse/KULRICE-1968 - Tests that we get an error if we try and search on an initiator that doesn't exist in the IDM system
|
void |
testDocSearch_startAtIndex() |
void |
testDocSearch_startAtIndexMoreThanResuls() |
void |
testDocSearch_startAtIndexNegative() |
void |
testDocSearch_startAtIndexZero() |
void |
testDocSearch_WildcardsOnRegularAttributes()
Tests the usage of wildcards on the regular document search attributes.
|
void |
testDocSearch() |
void |
testDocSearchDocumentResult() |
void |
testDocSearchWithAttributes()
Tests searching against document search attrs
|
void |
testDocumentStatusSearching()
Tests searching on document status and document status category
|
void |
testGetNamedDocSearches() |
void |
testNamedDocSearchPersistence()
Tests that performing a named search automatically saves the last search criteria as well as named search
|
void |
testUnnamedDocSearchPersistence()
Tests that performing a search automatically saves the last search criteria
|
clearCacheManagers, getGroupIdForName, getLoadApplicationLifecycle, getNextSequenceLongValue, getNextSequenceStringValue, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getRoleIdForName, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadXmlFile, loadXmlFile, loadXmlFileFromFileSystem, loadXmlStreamgetClearDbPerTestLifecycles, getMode, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUpgetModuleNamegetKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestDataconfigureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDowngetName, getPerTestDataLoaderLifecycle, getTestMethod, resetLogLevels, setLogLevel, setName, setTestMethodpublic DocumentSearchTest()
protected void loadTestData() throws Exception
loadTestData in class KEWTestCaseExceptionprotected void setUpAfterDataLoad() throws Exception
KEWTestCasesetUpAfterDataLoad in class KEWTestCaseExceptionpublic void testDocSearch() throws Exception
Exceptionpublic void testDocSearchDocumentResult() throws Exception
Exceptionpublic void testDocSearch_appDocStatuses() throws Exception
Exceptionpublic void testDocSearch_maxResults() throws Exception
Exceptionpublic void testDocSearch_maxResultsIsNull() throws Exception
Exceptionpublic void testDocSearch_maxResultsIsZero() throws Exception
Exceptionpublic void testDocSearch_startAtIndex() throws Exception
Exceptionpublic void testDocSearch_startAtIndexMoreThanResuls() throws Exception
Exceptionpublic void testDocSearch_startAtIndexNegative() throws Exception
Exceptionpublic void testDocSearch_startAtIndexZero() throws Exception
Exceptionpublic void testUnnamedDocSearchPersistence() throws Exception
Exceptionpublic void testNamedDocSearchPersistence() throws Exception
Exceptionprotected static String marshall(DocumentSearchCriteria criteria) throws Exception
Exceptionpublic void testDocSearch_criteriaModified() throws Exception
Exceptionpublic void testDocSearch_MissingInitiator() throws Exception
Exceptionpublic void testDocSearch_SearchOnMissingInitiator() throws Exception
Exceptionpublic void testDocSearch_RouteNodeName() throws Exception
Exceptionpublic void testGetNamedDocSearches() throws Exception
Exceptionpublic void testDocSearchWithAttributes() throws Exception
Exceptionpublic void testDocSearch_WildcardsOnRegularAttributes() throws Exception
Exceptionpublic void testAdditionalDocumentTypesCriteria() throws Exception
Exceptionpublic void testDocumentStatusSearching()
protected void assertDocumentStatuses(String documentType, String principalId, int initiated, int saved, int enroute, int exception, int processed, int finl, int canceled, int disapproved)
protected void assertDocumentStatus(String documentType, String principalId, DocumentStatus status, int num)
protected void assertDocumentStatusCategory(String documentType, String principalId, DocumentStatusCategory status, int num)
protected String[] routeTestDocs()
protected String routeTestDoc2()
public void testDocSearch_maxResultsCap() throws Exception
Exceptionpublic void testDocSearch_fetchMoreIterationLimit() throws Exception
ExceptionCopyright © 2005–2016 The Kuali Foundation. All rights reserved.