|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.junit.Assert
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
public class BaselineTestCase
Test case which supports common styles of "baselining" the test environment before/after running
a unit test.
Currently supports three modes, which are specifyiable either via constructor, getMode() override,
or by annotation:
BaselineTestCase.Mode value.
| Nested Class Summary | |
|---|---|
static interface |
BaselineTestCase.BaselineMode
|
static class |
BaselineTestCase.Mode
Enum of "baselining" modes that this test case supports |
| Field Summary | |
|---|---|
protected static boolean |
dirty
Whether the test environment is in a "dirty" state. |
| Fields inherited from class org.kuali.rice.test.BaseModuleTestCase |
|---|
LOG, moduleName |
| Fields inherited from class org.kuali.rice.test.RiceTestCase |
|---|
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles |
| Fields inherited from class org.kuali.rice.test.BaseRiceTestCase |
|---|
log, method |
| Constructor Summary | |
|---|---|
BaselineTestCase(String moduleName)
|
|
BaselineTestCase(String moduleName,
BaselineTestCase.Mode mode)
Adds the ability to specify Mode |
|
| Method Summary | |
|---|---|
protected List<Lifecycle> |
getClearDbPerTestLifecycles()
|
protected BaselineTestCase.Mode |
getMode()
|
protected List<Lifecycle> |
getPerTestLifecycles()
|
protected List<String> |
getPerTestTablesNotToClear()
|
protected List<String> |
getPerTestTablesToClear()
|
protected List<Lifecycle> |
getRollbackPerTestLifecycles()
|
void |
setUp()
Overridden to set dirty=true each time |
| Methods inherited from class org.kuali.rice.test.BaseModuleTestCase |
|---|
getModuleName |
| Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase |
|---|
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKNSDefaultSuiteTestData, loadSuiteTestData |
| Methods inherited from class org.kuali.rice.test.BaseRiceTestCase |
|---|
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod |
| Methods inherited from class org.junit.Assert |
|---|
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static boolean dirty
TransactionalLifecycle then
it should clear the dirty flag. This flag can be used to perform cleanup in case a previous
test left the test environment in a "dirty" state.
| Constructor Detail |
|---|
public BaselineTestCase(String moduleName)
public BaselineTestCase(String moduleName,
BaselineTestCase.Mode mode)
| Method Detail |
|---|
protected BaselineTestCase.Mode getMode()
public void setUp()
throws Exception
setUp in class RiceTestCaseExceptionRiceTestCase.setUp()protected List<Lifecycle> getPerTestLifecycles()
getPerTestLifecycles in class RiceTestCaseprotected List<Lifecycle> getClearDbPerTestLifecycles()
protected List<String> getPerTestTablesToClear()
protected List<String> getPerTestTablesNotToClear()
protected List<Lifecycle> getRollbackPerTestLifecycles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||