@Test publicvoid testResolve01() throws URISyntaxException, MalformedURLException {
URI base = new URI("file:/aaa/bbb/base.xml");
String target = "target.xml";
URI result = UriUtil.resolve(base, target); Assert.assertEquals(new URI("file:/aaa/bbb/target.xml"), result);
}
@Test publicvoid testResolve02() throws URISyntaxException, MalformedURLException {
URI base = new URI("file:/aaa/bbb/base.xml");
String target = "../target.xml";
URI result = UriUtil.resolve(base, target); Assert.assertEquals(new URI("file:/aaa/target.xml"), result);
}
@Test publicvoid testResolve03() throws URISyntaxException, MalformedURLException {
URI base = new URI("jar:file:/aaa/bbb!/ccc/ddd/base.xml");
String target = "target.xml";
URI result = UriUtil.resolve(base, target); Assert.assertEquals(new URI("jar:file:/aaa/bbb!/ccc/ddd/target.xml"), result);
}
@Test publicvoid testResolve04() throws URISyntaxException, MalformedURLException {
URI base = new URI("jar:file:/aaa/bbb!/ccc/ddd/base.xml");
String target = "../target.xml";
URI result = UriUtil.resolve(base, target); Assert.assertEquals(new URI("jar:file:/aaa/bbb!/ccc/target.xml"), result);
}
@Test publicvoid testResolve05() throws URISyntaxException, MalformedURLException {
URI base = new URI("jar:file:/aaa/bbb!/ccc/ddd/base.xml");
String target = "../../target.xml";
URI result = UriUtil.resolve(base, target); Assert.assertEquals(new URI("jar:file:/aaa/bbb!/target.xml"), result);
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-09-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.