Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for URLClassLoader (0.29 sec)

  1. src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java

         */
        @Test
        public void testIsAncestor() throws Exception {
            final ClassLoader cl1 = new URLClassLoader(new URL[] { new URL("file:/foo") }, null);
            final ClassLoader cl2 = new URLClassLoader(new URL[] { new URL("file:/bar") }, cl1);
            final ClassLoader cl3 = new URLClassLoader(new URL[] { new URL("file:/baz") }, cl2);
    
            assertThat(ClassLoaderUtil.isAncestor(cl3, cl2), is(true));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/io/ResourceUtilTest.java

            assertEquals(file, file2);
            final File junitJar = ResourceUtil.getBuildDir(TestCase.class);
            assertTrue(junitJar.exists());
            final URL url = junitJar.toURI().toURL();
            final URLClassLoader loader = new URLClassLoader(new URL[] { url });
            loader.loadClass(TestCase.class.getName());
        }
    
        /**
         * @throws Exception
         */
        public void testIsExist() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/lang/ClassLoaderIteratorTest.java

    import static org.junit.Assert.assertThat;
    
    import java.net.URL;
    import java.net.URLClassLoader;
    
    import org.junit.Test;
    
    /**
     * @author koichik
     */
    public class ClassLoaderIteratorTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void test() throws Exception {
            final ClassLoader cl1 = new URLClassLoader(new URL[] { new URL("file:/foo") }, null);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.7K bytes
    - Viewed (0)
Back to top