public class StandardGenericXMLSearchableAttributeTest extends DocumentSearchTestBase
KEWTestCase.BootstrapTest, KEWTestCase.ClearCacheLifecycle
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
dirty
LOG, moduleName
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
log, method
Constructor and Description |
---|
StandardGenericXMLSearchableAttributeTest() |
Modifier and Type | Method and Description |
---|---|
protected RemotableAttributeError |
assertDocumentSearchCriteriaValidation(StandardGenericXMLSearchableAttribute attribute,
ExtensionDefinition ed,
String attrkey,
String attrvalue,
boolean expectError)
Helper to assert document search criteria validation
|
protected void |
assertExtractDocumentAttributes(String docType,
String attrName,
String key,
Object value,
String searchableContent)
Help for asserting extracted document attributes
|
protected void |
assertGeneratedSearchContent(String docType,
String attrName,
String key,
String value,
String expr)
Helper for asserting generated search content
|
protected DocumentWithContent |
createDocumentWithSearchableContent(String docType,
String content)
Helper to create documentwithcontent with searchable content
|
protected void |
loadTestData() |
void |
testBlankValidValuesOnKeyValues()
Tests that Field objects use correct KeyValue instances when checks for blank valid values are performed
(such as when JSP renders drop-downs), to verify that KULRICE-3587 has been fixed.
|
void |
testDocumentSearchAttributeCaseSensitivity() |
void |
testDocumentSearchAttributeWildcarding() |
void |
testDocumentSearchAttributeWildcardingDisallow() |
void |
testExtractDocumentAttributes() |
void |
testGetSearchContent() |
void |
testGetSearchFields() |
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 hiding 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 |
testValidateUserSearchInputs() |
void |
testXMLStandardSearchableAttributesWithDataType() |
void |
testXMLStandardSearchableAttributeWithInvalidValue() |
addSearchableAttribute, addSearchableAttribute, createExtensionDefinition, createSearchableAttributeRange, getAttribute
clearCacheManagers, getGroupIdForName, getLoadApplicationLifecycle, getNextSequenceLongValue, getNextSequenceStringValue, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getRoleIdForName, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadXmlFile, loadXmlFile, loadXmlFileFromFileSystem, loadXmlStream, setUpAfterDataLoad
getClearDbPerTestLifecycles, getMode, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUp
getModuleName
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
configureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
getName, getPerTestDataLoaderLifecycle, getTestMethod, resetLogLevels, setLogLevel, setName, setTestMethod
public StandardGenericXMLSearchableAttributeTest()
protected void loadTestData() throws Exception
loadTestData
in class KEWTestCase
Exception
public void testXMLStandardSearchableAttributeWithInvalidValue() throws Exception
Exception
public void testXMLStandardSearchableAttributesWithDataType() throws Exception
Exception
public void testRouteDocumentWithSearchableAttribute() throws Exception
Exception
public void testDocumentSearchAttributeWildcarding() throws Exception
Exception
public void testDocumentSearchAttributeWildcardingDisallow() throws Exception
Exception
public void testDocumentSearchAttributeCaseSensitivity() throws Exception
Exception
public void testRouteDocumentWithMalformedSearchableAttributeContent() throws WorkflowException
WorkflowException
public void testRouteDocumentWithInvalidSearchableAttributeContent() throws Exception
Exception
public void testRouteDocumentWithMoreInvalidSearchableAttributeContent() throws Exception
Exception
public void testGetSearchContent() throws Exception
Exception
protected void assertGeneratedSearchContent(String docType, String attrName, String key, String value, String expr) throws Exception
Exception
public void testExtractDocumentAttributes() throws ParseException
ParseException
protected DocumentWithContent createDocumentWithSearchableContent(String docType, String content)
protected void assertExtractDocumentAttributes(String docType, String attrName, String key, Object value, String searchableContent)
public void testGetSearchFields()
public void testValidateUserSearchInputs()
protected RemotableAttributeError assertDocumentSearchCriteriaValidation(StandardGenericXMLSearchableAttribute attribute, ExtensionDefinition ed, String attrkey, String attrvalue, boolean expectError)
public void testRouteDocumentWithXStreamSearchableAttribute() throws Exception
Exception
public void testSearchableAttributeWithQuickfinder() throws Exception
Exception
public void testSearchableAttributeWithHiddens() throws Exception
Exception
public void testSetApplicationContentXMLRoutedDocument() throws Exception
Exception
public void testBlankValidValuesOnKeyValues() throws Exception
Exception
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.