public class AppDocStatusTest extends KEWTestCase
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 |
---|
AppDocStatusTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertAppDocStatuses(String documentId,
String[] appDocStatuses)
Verifies the document application document status history
|
protected void |
assertSearchStatus(String documentTypeName,
Person user,
String appDocStatus,
int expected,
long changed)
Verifies the DocumentSearchService finds documents with a given app document status
|
protected void |
loadTestData() |
void |
testAppDocStatusValuesNotDefined()
This method is similar to the above test, except that the doctype definition
does NOT specify a valid set of values.
|
void |
testInheritedAppDocStatusWithKEWStatus()
This method tests a valid set of application document status values that are not inherited due to KEW status (KULRICE-8943).
|
void |
testInvalidAppDocStatusValue()
This test attempts to set an invalid status value for a document that has a valid set
of statuses defined.
|
void |
testSearching() |
void |
testValidAppDocStatus()
This method performs several positive tests related to Application Document Status
For these tests the doctype definition defines a valid set of statuses.
|
void |
testValidInheritedAppDocStatus()
This method is similar to the above test, except that the doctype definition
INHERITS a valid set of application document status values.
|
void |
testValidInheritedAppDocStatusWithCategories()
This method an inherited valid set of values and categories.
|
clearCacheManagers, getGroupIdForName, getLoadApplicationLifecycle, 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, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
public AppDocStatusTest()
protected void loadTestData() throws Exception
loadTestData
in class KEWTestCase
Exception
public void testValidAppDocStatus() throws Exception
Exception
public void testAppDocStatusValuesNotDefined() throws Exception
Exception
public void testInvalidAppDocStatusValue() throws Exception
Exception
public void testValidInheritedAppDocStatus() throws Exception
Exception
public void testValidInheritedAppDocStatusWithCategories() throws Exception
Exception
public void testInheritedAppDocStatusWithKEWStatus() throws Exception
Exception
public void testSearching() throws InterruptedException
InterruptedException
protected void assertSearchStatus(String documentTypeName, Person user, String appDocStatus, int expected, long changed)
documentTypeName
- the doc typeuser
- user for lookupappDocStatus
- the app doc status targetexpected
- the expected number of resultschanged
- the time the transition occurred (used for from/to range)protected void assertAppDocStatuses(String documentId, String[] appDocStatuses)
documentId
- the doc idappDocStatuses
- list of app doc statuses in chronological orderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.