| edu.rice.cs.drjava.DrJavaTestCase edu.rice.cs.util.classloader.StickyClassLoaderTest
StickyClassLoaderTest | public class StickyClassLoaderTest extends DrJavaTestCase (Code) | | Test cases for
StickyClassLoader .
version: $Id: StickyClassLoaderTest.java 4255 2007-08-28 19:17:37Z mgricken $ |
Inner Class :public static class One | |
Inner Class :public static class Two extends One | |
Inner Class :public interface BMaker | |
Inner Class :public static class A implements BMaker | |
Method Summary | |
public void | testDoesntLoadSameClassTwice() Makes sure that a class that was loaded once before (implicitly) is not
loaded a second time. | public void | testLoaderFindsNonSystemJavaClasses() Tests that add-on Java packages, such as javax.mail.*, can be
loaded through the secondary loader if not found in the system
loader. | public void | testLoaderRespectsOldList() Make sure getClass().getClassLoader() does not stick if the class
was on the useOldLoader list. | public void | testLoaderSticks() Make sure getClass().getClassLoader() sticks, regardless of where
the class data came from. | public void | testLoaderSticksTransitively() Make sure that if we load A through sticky loader, and A requires B
to be loaded, B is also loaded through sticky loader. | public void | testLoaderUsesSystemForJavaClasses() Make sure it works even for java.* classes. |
testDoesntLoadSameClassTwice | public void testDoesntLoadSameClassTwice() throws Throwable(Code) | | Makes sure that a class that was loaded once before (implicitly) is not
loaded a second time. This test corresponds to bug #520519. As of
util-20020219-2255, this test case causes a LinkageError to be thrown, since
One is loaded twice. This problem was caused by the StickyClassLoader
not checking whether the class was already loaded before loading it!
|
testLoaderFindsNonSystemJavaClasses | public void testLoaderFindsNonSystemJavaClasses() throws Throwable(Code) | | Tests that add-on Java packages, such as javax.mail.*, can be
loaded through the secondary loader if not found in the system
loader.
|
testLoaderRespectsOldList | public void testLoaderRespectsOldList() throws Throwable(Code) | | Make sure getClass().getClassLoader() does not stick if the class
was on the useOldLoader list.
|
testLoaderSticks | public void testLoaderSticks() throws Throwable(Code) | | Make sure getClass().getClassLoader() sticks, regardless of where
the class data came from.
|
testLoaderSticksTransitively | public void testLoaderSticksTransitively() throws Throwable(Code) | | Make sure that if we load A through sticky loader, and A requires B
to be loaded, B is also loaded through sticky loader.
We load the BMaker interface through the old loader so we can
cast to that interface.
|
testLoaderUsesSystemForJavaClasses | public void testLoaderUsesSystemForJavaClasses() throws Throwable(Code) | | Make sure it works even for java.* classes.
|
Fields inherited from edu.rice.cs.drjava.DrJavaTestCase | final public static String TEST_DRJAVA_CONFIG_PROPERTY(Code)(Java Doc)
|
|
|