|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.junit.Assert org.kuali.rice.test.BaseRiceTestCase
public abstract class BaseRiceTestCase
A generic Rice Unit Test base class.
1) Sets up a generic logger.
2) Sets the name of the class being run to mimic jUnit 3 functionality.
3) Stores the name of the method being run for use by subclasses (set by RiceUnitTestClassRunner
4) Sets the PerTestDataLoaderLifecycle that will load sql for the currently running test.
Field Summary | |
---|---|
protected Logger |
log
|
protected Method |
method
|
Constructor Summary | |
---|---|
BaseRiceTestCase()
|
Method Summary | |
---|---|
String |
getName()
|
protected PerTestDataLoaderLifecycle |
getPerTestDataLoaderLifecycle()
|
protected void |
resetLogLevels()
Restores the logging-levels changed through calls to setLogLevel to their original values. |
protected void |
setLogLevel(String loggerName,
Level newLevel)
Changes the logging-level associated with the given loggerName to the given level. |
void |
setName(String name)
|
void |
setTestMethod(Method testMethod)
|
void |
setUp()
|
void |
tearDown()
|
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 final Logger log
protected Method method
Constructor Detail |
---|
public BaseRiceTestCase()
Method Detail |
---|
public String getName()
public void setName(String name)
public void setUp() throws Exception
Exception
public void tearDown() throws Exception
Exception
protected void setLogLevel(String loggerName, Level newLevel)
loggerName
- name of the logger whose level to changenewLevel
- the level to change toprotected void resetLogLevels()
public void setTestMethod(Method testMethod)
setTestMethod
in interface MethodAware
MethodAware.setTestMethod(java.lang.reflect.Method)
protected PerTestDataLoaderLifecycle getPerTestDataLoaderLifecycle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |