|
JBoss Test 1.1.9.GA-redhat-2 | |||||||||
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
public class AbstractTestCaseWithSetup
An extension of AbstractTestCase that adds AbstractTestDelegate and AbstractTestSetup delegate notions. The AbstractTestSetup integrates with the 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 logging for the given category name. |
protected AbstractTestDelegate |
getDelegate()
Get the delegate |
org.jboss.logging.Logger |
getLog()
Get the jboss logger. |
static void |
resumeSecurity(SecurityManager securityManager)
Resume / set security manager. |
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. |
static SecurityManager |
suspendSecurity()
Suspend security manager. |
protected void |
tearDown()
|
Methods inherited from class org.jboss.test.AbstractTestCase |
---|
assertEmpty, assertEmpty, assertEmpty, assertEquals, assertEquals, assertEquals, assertEquals, assertInstanceOf, assertInstanceOf, checkDeepThrowable, checkDeepThrowableRethrow, checkThrowable, checkThrowableRethrow, configureLogging, deserialize, failure, findResource, getResource, serialize, serializeDeserialize |
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, format |
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()
getLog
in class AbstractTestCase
protected void enableTrace(String name)
enableTrace
in class AbstractTestCase
name
- - the logging category to enable trace level logging for.protected 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
public static SecurityManager suspendSecurity()
public static void resumeSecurity(SecurityManager securityManager)
securityManager
- security manager to set
|
JBoss Test 1.1.9.GA-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |