|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jboss.test.BaseTestCase
Base Test Case.
Field Summary | |
protected org.jboss.logging.Logger |
log
The log |
Constructor Summary | |
BaseTestCase(String name)
Create a new base test case |
Method Summary | |
protected void |
assertEquals(double one,
double two)
Assert two double values are equal |
protected void |
assertEquals(float one,
float two)
Assert two float values are equal |
protected void |
assertEquals(Object[] expected,
Object[] actual)
Assert to arrays are equal |
protected void |
assertEquals(String context,
Object[] expected,
Object[] actual)
Assert to arrays are equal |
protected void |
checkThrowable(Class expected,
Throwable throwable)
|
protected void |
configureLogging()
Callback for configuring logging at the start of the test |
protected void |
enableTrace(String name)
Enable trace for a logging category |
org.jboss.logging.Logger |
getLog()
Get the log for this test |
protected void |
setUp()
|
protected void |
tearDown()
|
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected org.jboss.logging.Logger log
Constructor Detail |
public BaseTestCase(String name)
name
- the test nameMethod Detail |
public org.jboss.logging.Logger getLog()
protected void setUp() throws Exception
Exception
protected void tearDown() throws Exception
Exception
protected void configureLogging()
protected void enableTrace(String name)
name
- the logging categoryprotected void assertEquals(float one, float two)
one
- the expected valuetwo
- the actual valueprotected void assertEquals(double one, double two)
one
- the expected valuetwo
- the actual valueprotected void assertEquals(Object[] expected, Object[] actual)
expected
- the expected arrayactual
- the actual arrayprotected void assertEquals(String context, Object[] expected, Object[] actual)
context
- the contextexpected
- the expected arrayactual
- the actual arrayprotected void checkThrowable(Class expected, Throwable throwable)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |