Home
last modified time | relevance | path

Searched refs:testURL (Results 1 – 2 of 2) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURLTest.java608 URL testURL = new URL("http", "www.apache.org:8080", "test.html#anch"); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() local
609 assertEquals("wrong protocol", "http", testURL.getProtocol()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
610 assertEquals("wrong host", "[www.apache.org:8080]", testURL.getHost()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
611 assertEquals("wrong port", -1, testURL.getPort()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
612 assertEquals("wrong file", "/test.html", testURL.getFile()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
613 assertEquals("wrong anchor", "anch", testURL.getRef()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
929 URL testURL = new URL("http", "hostname", 80, "/java?q1#ref"); in test_getAuthority() local
930 assertEquals("hostname:80", testURL.getAuthority()); in test_getAuthority()
931 assertEquals("hostname", testURL.getHost()); in test_getAuthority()
932 assertNull(testURL.getUserInfo()); in test_getAuthority()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DOldURLTest.java69 URL testURL = new URL("http", "www.apache.org:8082", "test.html#anch"); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() local
70 assertEquals("Assert 0: wrong protocol", "http", testURL.getProtocol()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
71 assertEquals("Assert 1: wrong host", "[www.apache.org:8082]", testURL.getHost()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
72 assertEquals("Assert 2: wrong port", -1, testURL.getPort()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
73 assertEquals("Assert 3: wrong file", "/test.html", testURL.getFile()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
74 assertEquals("Assert 4: wrong anchor", "anch", testURL.getRef()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
152 URL testURL = new URL("ftp://myname@host.dom/etc/motd"); in testURLString() local
154 assertEquals("Assert 0: wrong protocol", "ftp", testURL.getProtocol()); in testURLString()
155 assertEquals("Assert 1: wrong host", "host.dom", testURL.getHost()); in testURLString()
156 assertEquals("Assert 2: wrong port", -1, testURL.getPort()); in testURLString()
[all …]