Home
last modified time | relevance | path

Searched refs:url2 (Results 1 – 6 of 6) 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 …]
DURLTest.java948 URL url2 = new URL("http://www.nest.com/"); in testHashCodeAndEqualsDoesNotPerformNetworkIo() local
950 url.equals(url2); in testHashCodeAndEqualsDoesNotPerformNetworkIo()
951 url2.hashCode(); in testHashCodeAndEqualsDoesNotPerformNetworkIo()
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.java205 URL url2;
225 url2 = new URL("http://localhost:" + port + "/test2");
226 uc2 = url2.openConnection();
1203 assertEquals(url2.toString(), url);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileTest.java2134 URL url2 = f.toURL(); in test_toURL2() local
2135 assertEquals("urls not equal", url1, url2); in test_toURL2()