|
||||||||||
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.util.test.loading.ClassLoaderSourceTestBase
public abstract class ClassLoaderSourceTestBase
Base class for testing ClassLoaderSource
implementations.
Field Summary | |
---|---|
protected ClassLoader |
origCl
|
Constructor Summary | |
---|---|
ClassLoaderSourceTestBase(String name)
|
Method Summary | |
---|---|
protected void |
checkCorrectClassLoaderSource(ClassLoader tccl)
|
protected abstract org.jboss.util.loading.ClassLoaderSource |
createClassLoaderSource()
|
protected abstract ClassLoader |
getExpectedClassLoader(ClassLoader tccl)
|
protected ClassLoader |
getExtendedClassLoader()
|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testDifferentTCCL()
Tests that the ClassLoaderSource returns the expected classloader when the TCCL is a child classloader. |
void |
testImplClassLoader()
Tests that the ClassLoaderSource returns the expected classloader when the TCCL is the CLS impl's own classloader. |
void |
testNullTCCL()
Tests that the ClassLoaderSource returns the expected classloader when the TCCL is null. |
void |
testOriginalTCCL()
Tests that the ClassLoaderSource returns the expected classloader when the TCCL is the basic one in place when this test is executed. |
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 |
Field Detail |
---|
protected ClassLoader origCl
Constructor Detail |
---|
public ClassLoaderSourceTestBase(String name)
name
- Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
protected abstract org.jboss.util.loading.ClassLoaderSource createClassLoaderSource()
protected abstract ClassLoader getExpectedClassLoader(ClassLoader tccl)
public void testNullTCCL()
public void testOriginalTCCL()
public void testImplClassLoader()
public void testDifferentTCCL()
protected void checkCorrectClassLoaderSource(ClassLoader tccl)
protected ClassLoader getExtendedClassLoader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |