Lines Matching refs:URL

25 import java.net.URL;
64 public URL getResource(String res) {
66 return new URL("http://test/BogusClassLoader");
75 public URLClassLoaderExt(URL[] urls) {
85 * @tests java.net.URLClassLoader#URLClassLoader(java.net.URL[])
88 URL[] u = new URL[0];
94 URLClassLoader loader = new URLClassLoader(new URL[] { null });
104 * @tests java.net.URLClassLoader#URLClassLoader(java.net.URL[],
109 URL[] u = new URL[0];
111 URL res = ucl.getResource("J");
122 URL[] urls = new URL[2];
123 urls[0] = new URL(serverURL);
124 urls[1] = new URL(serverURL + "/subdir1/");
132 InputStream is = ((URL) res.nextElement()).openStream();
152 URL[] urls = new URL[4];
153 urls[0] = new URL("http://" + Support_Configuration.HomeAddress);
154 urls[1] = new URL("http://" + Support_Configuration.TestResources + "/");
155 urls[2] = new URL("ftp://" + Support_Configuration.TestResources + "/");
156 urls[3] = new URL("jar:file:c://" + Support_Configuration.TestResources
159 URL[] ucUrls = ucl.getURLs();
161 assertEquals("Returned incorrect URL[]", urls[i], ucUrls[i]);
166 * @tests java.net.URLClassLoader#newInstance(java.net.URL[])
171 URL[] urls = new URL[1];
172 urls[0] = new URL(serverURL + "/UCL/UCL.jar");
176 URL res = cl.getClassLoader().getResource("XX.class");
182 urls[0] = new URL("jar:" + serverURL + "/UCL/UCL.jar!/");
185 assertNotNull("Failed to load class from explicit jar URL", cl);
189 * @tests java.net.URLClassLoader#newInstance(java.net.URL[],
194 URL[] u = new URL[0];
196 URL res = ucl.getResource("J");
202 * @tests java.net.URLClassLoader#URLClassLoader(java.net.URL[],
212 URL[] u = new URL[0];
214 URL res = ucl.getResource("J");
236 URL[] urls = new URL[1];
237 urls[0] = new URL("file:/" + resPath + "/JarIndex/hyts_11.jar");
240 URL resURL = ucl.findResource("Test.txt");
241 URL reference = new URL("jar:file:/" + resPath.replace('\\', '/')
251 urls[0] = new URL("file:/" + resPath + "/JarIndex/hyts_21.jar");
258 URL url1 = (URL) en.nextElement();
259 URL url2 = (URL) en.nextElement();
261 && url1.equals(new URL("jar:file:/"
265 && url2.equals(new URL("jar:file:/"
293 urls[0] = new URL("file:/" + resPath + "/JarIndex/hyts_22-new.jar");
297 urls[0] = new URL("file:/" + resPath + "/JarIndex/hyts_31.jar");
310 urls[0] = new URL("file:/" + resPath + "/JarIndex/hyts_41.jar");
314 && ((URL) en.nextElement()).equals(new URL("jar:file:/"
322 URLClassLoaderExt cl = new URLClassLoaderExt(new URL[557]);
330 URLClassLoader cl = new URLClassLoader(new URL[] { new URL(
352 URL[] urls = new URL[2];
353 urls[0] = new URL(serverURL);
354 urls[1] = new URL(serverURL);
356 URL res = ucl.findResource("RESOURCE.TXT");
379 URL dirUrl;
386 loader = new URLClassLoader(new URL[] { dirUrl });
396 assertEquals("URL was not correctly encoded", f2.toURI().toURL(),
411 new URL[] { new URL("file:/" + resPath
415 URL expected = new URL("jar:file:/" + resPath.replace('\\', '/')
417 assertEquals(expected, (URL) en.nextElement());
426 URL url1 = new URL("file:///");
427 URLClassLoader loader = new URLClassLoader(new URL[] { url1 }, null);
430 URL result = loader.getResource("dir1/file1");
457 Vector<URL> urlVec = new Vector<URL>();
467 urlVec.addElement(new URL(url));
472 URL[] urls = new URL[urlVec.size()];
515 URL[] urls = new URL[1];
516 urls[0] = new URL("file:/" + resPath + "/JarIndex/main.jar");