|
||||||||||
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
org.jboss.classloader.test.support.IsolatedClassLoaderTest
public abstract class IsolatedClassLoaderTest
IsolatedClassLoaderTest.
Constructor Summary | |
---|---|
IsolatedClassLoaderTest(String name)
Create a new IsolatedClassLoaderTest. |
Method Summary | |
---|---|
protected static ClassLoader |
createClassLoader(String name,
boolean importAll,
String... packages)
Create a classloader It exports everything |
protected static ClassLoader |
createClassLoader(String name,
String... packages)
Create a classloader It exports everything It imports everything |
static ClassLoaderSystem |
getClassLoaderSystem()
Get the classloader system, this will be configured with a domain called TEST that includes the test case's classloader |
static org.jboss.test.AbstractTestDelegate |
getDelegate(Class<?> clazz)
Get the delegate |
protected void |
setUp()
|
static junit.framework.Test |
suite(Class<?> clazz)
Create a test with just test's package visible and the default parent packages It imports nothing |
static junit.framework.Test |
suite(Class<?> clazz,
boolean importAll)
Create a test with just test's package visible and the default parent packages It exports everything |
static junit.framework.Test |
suite(Class<?> clazz,
boolean importAll,
Class<?>... packages)
Create a test with test's package visible and the packages of the classes listed It exports everything |
static junit.framework.Test |
suite(Class<?> clazz,
Class<?>... packages)
Create a test with test's package visible and the packages of the classes listed with the default parent packages It exports everything It imports nothing |
protected static void |
unregisterClassLoader(ClassLoader classLoader)
Unregister a classloader |
Methods inherited from class org.jboss.test.AbstractTestCaseWithSetup |
---|
enableTrace, getDelegate, getLog, resumeSecurity, suite, suspendSecurity, 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 IsolatedClassLoaderTest(String name)
name
- the test nameMethod Detail |
---|
public static org.jboss.test.AbstractTestDelegate getDelegate(Class<?> clazz)
clazz
- the test class
public static junit.framework.Test suite(Class<?> clazz)
clazz
- the test class
public static junit.framework.Test suite(Class<?> clazz, boolean importAll)
clazz
- the test classimportAll
- whether to import all
public static junit.framework.Test suite(Class<?> clazz, Class<?>... packages)
clazz
- the test classpackages
- the classes in packages that should also be included
public static junit.framework.Test suite(Class<?> clazz, boolean importAll, Class<?>... packages)
clazz
- the test classimportAll
- whether to import allpackages
- the classes in packages that should also be included
protected void setUp() throws Exception
setUp
in class org.jboss.test.AbstractTestCaseWithSetup
Exception
public static ClassLoaderSystem getClassLoaderSystem()
protected static ClassLoader createClassLoader(String name, String... packages) throws Exception
name
- the namepackages
- the packages
Exception
- for any errorprotected static ClassLoader createClassLoader(String name, boolean importAll, String... packages) throws Exception
name
- the nameimportAll
- whether to import allpackages
- the packages
Exception
- for any errorprotected static void unregisterClassLoader(ClassLoader classLoader) throws Exception
classLoader
- the classloader
Exception
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |