Home
last modified time | relevance | path

Searched refs:relativize (Results 1 – 4 of 4) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURITest.java1580 new URI("dir/file?query"), a.relativize(b)); in test_relativizeLjava_net_URI()
1586 "file://tools/~/first"), a.relativize(b)); in test_relativizeLjava_net_URI()
1588 "file:///~/first"), b.relativize(a)); in test_relativizeLjava_net_URI()
1592 assertEquals("Assert 3: URI relativized incorrectly,", new URI("second"), a.relativize(b)); in test_relativizeLjava_net_URI()
1593 assertEquals("Assert 4: URI relativized incorrectly,", new URI("first"), b.relativize(a)); in test_relativizeLjava_net_URI()
1598 assertEquals(expected, new URI(base).relativize(new URI(target)).toString()); in testRelativize()
1607 URI relative = base.relativize(uri); in test_relativize3()
1618 assertEquals("relativized incorrectly,", new URI("dir/file?query"), a.relativize(b)); in test_relativize2()
1624 "file://tools/~/dictionary"), a.relativize(b)); in test_relativize2()
1626 new URI("file:///~/dictionary"), b.relativize(a)); in test_relativize2()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DOldURITest.java112 b.relativize(null); in test_relativizeLjava_net_URI()
DURITest.java529 assertEquals("b/c", a.relativize(b).toString()); // RI assumes a directory in testRelativize()
659 assertEquals(relative, absolute.relativize(new URI("http://android.com/robots.txt"))); in testRelativizeRelativeAndAbsolute()
660 assertEquals(new URI(""), absolute.relativize(absolute)); in testRelativizeRelativeAndAbsolute()
661 assertEquals(relative, absolute.relativize(relative)); in testRelativizeRelativeAndAbsolute()
662 assertEquals(absolute, relative.relativize(absolute)); in testRelativizeRelativeAndAbsolute()
663 assertEquals(new URI(""), relative.relativize(relative)); in testRelativizeRelativeAndAbsolute()
/libcore/luni/src/main/java/java/net/
DURI.java1136 public URI relativize(URI relative) { in relativize() method in URI