| |
|
| com.sun.jbi.framework.TestDelegatingClassLoader
TestDelegatingClassLoader | public class TestDelegatingClassLoader extends junit.framework.TestCase (Code) | | Tests for the various methods on the DelegatingClassLoader class.
author: Sun Microsystems, Inc. |
Constructor Summary | |
public | TestDelegatingClassLoader(String aTestName) The constructor for this testcase, forwards the test name to
the jUnit TestCase base class. |
TestDelegatingClassLoader | public TestDelegatingClassLoader(String aTestName)(Code) | | The constructor for this testcase, forwards the test name to
the jUnit TestCase base class.
Parameters: aTestName - String with the name of this test. |
setUp | public void setUp() throws Exception(Code) | | Setup for the test. This creates the ClassLoaderFactory instance
and other objects needed for the tests.
throws: Exception - when set up fails for any reason. |
tearDown | public void tearDown() throws Exception(Code) | | Cleanup for the test.
throws: Exception - when tearDown fails for any reason. |
testCCLLoadJBIClassNoSharedLib | public void testCCLLoadJBIClassNoSharedLib()(Code) | | testCCLLoadJBIClassNoSharedLib
tests the loading of a JBI class by the DelegatingClassLoader
when there is no Shared Lib (and hence no shared class loader)
this tests the implementation of loadClass designed for exactly
this purpose.
throws: Exception - if an unexpected error occurs |
testDCLAddingSharedNameLoaders | public void testDCLAddingSharedNameLoaders()(Code) | | testDCLAddingSharedNameLoaders.
tests the adding of Shared Classloaders to the Delegating Classloader.
|
testDCLAddingSharedNameLoadersNullCL | public void testDCLAddingSharedNameLoadersNullCL()(Code) | | testDCLAddingSharedNameLoadersNullCL
tests the adding of null Shared Classloaders to the Delegating Classloader
throws: Exception - if an unexpected error occurs |
testDCLLoadClass | public void testDCLLoadClass()(Code) | | testDCLLoadClass
tests the loading of classes corresponding to different classloaders
added to a DelegatingClassLoader
throws: Exception - if an unexpected error occurs |
testDCLLoadClassWithPrivateSelfFirstFalseSharedLibSelfFirstTrue | public void testDCLLoadClassWithPrivateSelfFirstFalseSharedLibSelfFirstTrue()(Code) | | testDCLLoadClassWithPrivateSelfFirstFalseSharedLibSelfFirstTrue
tests if a class is loaded correctly by the shared loader when the
same class is present in the component private path , shared lib ,
and the parent of the shared lib (system class loader) .
The "selfFirst" Flag is TRUE at the SharedLibrary Level
The "parentFirst" Flag is TRUE at the Component Level
`
throws: Exception - if an unexpected error occurs |
testDCLLoadClassWithSharedLibSelfFirstFalse | public void testDCLLoadClassWithSharedLibSelfFirstFalse()(Code) | | testDCLLoadClassWithSharedLibSelfFirstFalse
tests the loading of classes corresponding to different classloaders
added to a DelegatingClassLoader.
The "selfFirst" Flag is FALSE at the SharedLibrary Level
throws: Exception - if an unexpected error occurs |
testDCLLoadClassWithSharedLibSelfFirstTrue | public void testDCLLoadClassWithSharedLibSelfFirstTrue()(Code) | | testDCLLoadClassWithSharedLibSelfFirstTrue
tests the loading of classes corresponding to different classloaders
added to a DelegatingClassLoader.
The "selfFirst" Flag is TRUE at the SharedLibrary Level
throws: Exception - if an unexpected error occurs |
|
|
|