Home
last modified time | relevance | path

Searched refs:url2 (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DOldURLStreamHandlerTest.java36 URL url2 = new URL("http://test_url/test?a=b&c=%D0+%D1"); in test_equalsLjava_net_URLLjava_net_URL() local
37 assertFalse(url1.equals(url2)); in test_equalsLjava_net_URLLjava_net_URL()
40 assertFalse(handler.equals(url1,url2)); in test_equalsLjava_net_URLLjava_net_URL()
58 URL url2 = new URL("http://test:pwd@fakehostname.fakedomain/test?a=b&c=%D0+%D1"); in test_getHostAddress() local
59 assertNull(handler.getHostAddress(url2)); in test_getHostAddress()
67 URL url2 = new URL("http://test_url/test?a=b&c=%D0+%D1"); in test_hashCodeLjava_net_URL() local
68 assertTrue(handler.hashCode(url1) != handler.hashCode(url2)); in test_hashCodeLjava_net_URL()
71 assertFalse(handler.equals(url1,url2)); in test_hashCodeLjava_net_URL()
82 URL url2 = new URL("http://localhost/_test"); in test_hostsEqualLjava_net_URLLjava_net_URL() local
83 assertTrue(handler.hostsEqual(url1, url2)); in test_hostsEqualLjava_net_URLLjava_net_URL()
[all …]
DOldURLTest.java488 URL url2 = new URL(url,"/foo/index.html"); in testGetPath() local
489 assertEquals("/foo/index.html",url2.getPath()); in testGetPath()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURLTest.java715 URL url2 = new URL("file://localhost/anyfile"); in test_sameFileLjava_net_URL() local
716 assertTrue(url1.sameFile(url2)); in test_sameFileLjava_net_URL()
719 url2 = new URL("http://localhost/anyfile"); in test_sameFileLjava_net_URL()
720 assertFalse(url1.sameFile(url2)); in test_sameFileLjava_net_URL()
723 url2 = new URL("ftp://localhost/anyfile"); in test_sameFileLjava_net_URL()
724 assertFalse(url1.sameFile(url2)); in test_sameFileLjava_net_URL()
727 url2 = new URL("jar:file://localhost/anyfile.jar!/"); in test_sameFileLjava_net_URL()
728 assertFalse(url1.sameFile(url2)); in test_sameFileLjava_net_URL()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java209 URL url2;
229 url2 = new URL("http://localhost:" + port + "/test2");
230 uc2 = url2.openConnection();
1176 assertEquals(url2.toString(), url);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileTest.java2138 URL url2 = f.toURL(); in test_toURL2() local
2139 assertEquals("urls not equal", url1, url2); in test_toURL2()