|
||||||||||
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.embedded.junit.BaseTestCase
public class BaseTestCase
This base TestCase class will automatically 1. bootstrap Embedded JBoss 2. Call static methods deploy() and undeploy() of the class at setup() and tearDown() If the preProcessedTest() method is used, this creates a TestSetup that will skip step 2 above and instead call the static deploy() method before any test methods are run in the class. Undeploy() will be called when all test methods of the class are finished. This class was designed so that all tests within the class can be run at once from your IDE, or just one test method.
Constructor Summary | |
---|---|
BaseTestCase()
|
|
BaseTestCase(java.lang.String string)
|
Method Summary | |
---|---|
static junit.framework.Test |
preProcessedTest(java.lang.Class testClass)
Use this in a static suite() method in your test class to bootstrap and deploy your modules before any tests run. |
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 |
Constructor Detail |
---|
public BaseTestCase()
public BaseTestCase(java.lang.String string)
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public static junit.framework.Test preProcessedTest(java.lang.Class testClass)
testClass
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |