public class DocumentServiceTest extends KRADTestCase
KRADTestCase.BootstrapTest, KRADTestCase.Legacy
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
dd, kradTestHarnessSpringResourceLoader
dirty
LOG, moduleName
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
log, method
Constructor and Description |
---|
DocumentServiceTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
tearDown() |
void |
testGetDocumentsByListOfDocumentHeaderIds_Default()
Tests getting documents by a list of document numbers.
|
void |
testGetDocumentsByListOfDocumentHeaderIds_MissingDocuments()
Tests getting documents by a list of document numbers which don't exist.
|
void |
testGetNewDocument()
This method tests getNewDocument
|
void |
testGetNewDocumentDifferentInitiatorThanCurrentUser()
This method tests getNewDocument but the initiator is not the current user
|
void |
testGetNewDocumentInvalidInitiator()
This method tests getNewDocument but the initiator is invalid
|
void |
testSaveDocument_Default()
tests saveDocument, in particular, the save document rule event and the default rule method
invocation of the business rule associated with the document.
|
void |
testSaveDocument_DocumentEvent()
tests saveDocument, in particular, the save document rule event and the custom rule method
invocation of the business rule associated with the document.
|
getKRADTestHarnessContext, getLoadApplicationLifecycle, getPerTestTablesNotToClear, getSuiteLifecycles, getTestDictionaryObject, loadSuiteTestData, setUpInternal, setUpLegacyContext, tearDownLegacyContext
getClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles
getModuleName
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
configureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles
getName, getPerTestDataLoaderLifecycle, getTestMethod, resetLogLevels, setLogLevel, setName, setTestMethod
public DocumentServiceTest()
public void setUp() throws Exception
setUp
in class KRADTestCase
Exception
public void tearDown() throws Exception
tearDown
in class KRADTestCase
Exception
public void testGetNewDocument() throws Exception
Exception
public void testGetNewDocumentDifferentInitiatorThanCurrentUser() throws Exception
Exception
public void testGetNewDocumentInvalidInitiator() throws Exception
Exception
public void testSaveDocument_DocumentEvent() throws Exception
Exception
public void testSaveDocument_Default() throws Exception
Exception
public void testGetDocumentsByListOfDocumentHeaderIds_Default() throws Exception
Exception
- for any test issuespublic void testGetDocumentsByListOfDocumentHeaderIds_MissingDocuments() throws Exception
Exception
- for any test issuesCopyright © 2005–2016 The Kuali Foundation. All rights reserved.