|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.commons.jci.ReloadingClassLoaderRemoveTestCase
public class ReloadingClassLoaderRemoveTestCase
Test ReloadingClassLoader's removeResourceStore(
method.
ResourceStore
)
Constructor Summary | |
---|---|
ReloadingClassLoaderRemoveTestCase()
|
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testLoadClassAfterResourceStoreRemoved()
Test that a class can't be loaded after the ResourceStore containing it has been removed. |
void |
testRemoveStoreNotFoundClassLoaderHasStores()
Test trying to remove a ResourceStore from the ReloadingClassLoader which can't be found - when the ClassLoader DOES contain other ResourceStore. |
void |
testRemoveStoreNotFoundClassLoaderNoStores()
Test trying to remove a ResourceStore from the ReloadingClassLoader which can't be found - when the ClassLoader contains NO other ResourceStore. |
void |
testRemoveStoresFour()
Test trying to remove the fourth ResourceStore added Bug: ReloadingClassLoader addes ResourceStore at the start of the array. |
void |
testRemoveStoresOne()
Test trying to remove the first ResourceStore added Bug: ReloadingClassLoader addes ResourceStore at the start of the array. |
void |
testRemoveStoresThree()
Test trying to remove the third ResourceStore added Bug: In this scenario the two System.arraycopy() statements don't copy the correct ResourceStore - it creates a new array where the first resource store is null and copies store3 and store2 to their same positions |
void |
testRemoveStoresTwo()
Test trying to remove the second ResourceStore added Bug: ReloadingClassLoader addes ResourceStore at the start of the array. |
Methods inherited from class junit.framework.TestCase |
---|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReloadingClassLoaderRemoveTestCase() throws Exception
Exception
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
public void testRemoveStoreNotFoundClassLoaderNoStores()
public void testRemoveStoreNotFoundClassLoaderHasStores()
public void testRemoveStoresOne()
public void testRemoveStoresTwo()
public void testRemoveStoresThree()
public void testRemoveStoresFour()
public void testLoadClassAfterResourceStoreRemoved()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |