|
|||||||||||
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.AbstractTestCase
org.jboss.test.AbstractTestCaseWithSetup
An extension of AbstractTestCase that adds AbstractTestDelegate and AbstractTestSetup delegate notions. The AbstractTestSetup is integrates with the junit junit.extensions.TestSetup setUp/tearDown callbacks to create an AbstractTestDelegate. When a testcase is run as a class with all conforming unit test methods run, a single class wide AbstractTestDelegate is created by either the fist call to the setUp method, or the suite AbstractTestSetup wrapper created by suite(Class).
Constructor Summary | |
AbstractTestCaseWithSetup(String name)
Create a new test case |
Method Summary | |
protected void |
enableTrace(String name)
Enable trace for a logging category |
protected AbstractTestDelegate |
getDelegate()
Get the delegate |
org.jboss.logging.Logger |
getLog()
Get the log for this test |
protected void |
setUp()
Create a AbstractTestSetup wrapper for this class/instance to initialize the AbstractTestDelegate if the AbstractTestSetup.delegate singleton has not been initialized. |
static junit.framework.Test |
suite(Class clazz)
Bootstrap the test for the case of running all tests in clazz. |
protected void |
tearDown()
|
Methods inherited from class org.jboss.test.AbstractTestCase |
assertEmpty, assertEmpty, assertEquals, assertEquals, assertEquals, assertEquals, checkThrowable, configureLogging, deserialize, findResource, getResource, serialize |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractTestCaseWithSetup(String name)
name
- the test nameMethod Detail |
public org.jboss.logging.Logger getLog()
AbstractTestCase
getLog
in class AbstractTestCase
protected void enableTrace(String name)
AbstractTestCase
enableTrace
in class AbstractTestCase
name
- the logging categoryprotected AbstractTestDelegate getDelegate()
protected void setUp() throws Exception
setUp
in class AbstractTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class AbstractTestCase
Exception
public static junit.framework.Test suite(Class clazz)
clazz
- the test class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |