HomeSort by relevance Sort by last modified time
    Searched defs:testURL (Results 1 - 2 of 2) sorted by null

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
URLTest.java 608 URL testURL = new URL("http", "www.apache.org:8080", "test.html#anch");
609 assertEquals("wrong protocol", "http", testURL.getProtocol());
610 assertEquals("wrong host", "[www.apache.org:8080]", testURL.getHost());
611 assertEquals("wrong port", -1, testURL.getPort());
612 assertEquals("wrong file", "/test.html", testURL.getFile());
613 assertEquals("wrong anchor", "anch", testURL.getRef());
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
OldURLTest.java 69 URL testURL = new URL("http", "www.apache.org:8082", "test.html#anch");
70 assertEquals("Assert 0: wrong protocol", "http", testURL.getProtocol());
71 assertEquals("Assert 1: wrong host", "[www.apache.org:8082]", testURL.getHost());
72 assertEquals("Assert 2: wrong port", -1, testURL.getPort());
73 assertEquals("Assert 3: wrong file", "/test.html", testURL.getFile());
74 assertEquals("Assert 4: wrong anchor", "anch", testURL.getRef());
152 URL testURL = new URL("ftp://myname@host.dom/etc/motd");
154 assertEquals("Assert 0: wrong protocol", "ftp", testURL.getProtocol());
155 assertEquals("Assert 1: wrong host", "host.dom", testURL.getHost());
156 assertEquals("Assert 2: wrong port", -1, testURL.getPort())
    [all...]

Completed in 325 milliseconds