Skip to content

Commit

Permalink
test: uri on windows needs scheme to be absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
bogovicj committed Apr 29, 2024
1 parent 933f8d0 commit 0e5abc2
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ public void testUriValidator() throws ParseException {
assertNotNull(urival.stringToValue("/a/\\//b").toString());
assertNotNull(urival.stringToValue("://////").toString());
assertNotNull(urival.stringToValue("..").toString());

assertNotNull(urival.stringToValue("/a/b/c"));
assertNotNull(urival.stringToValue("/a/b/c?d/e"));
assertNotNull(urival.stringToValue("/a/b/c?d/e#f/g"));
}

// both windows and not
assertNotNull(urival.stringToValue(p.toString()));
assertNotNull(urival.stringToValue(p.toUri().toString()));
assertNotNull(urival.stringToValue(p.toUri().toString() + "?d/e"));
assertNotNull(urival.stringToValue(p.toUri().toString() + "?d/e#f/g"));

// both windows and not
assertNotNull(urival.stringToValue("/a/b/c"));
assertNotNull(urival.stringToValue("/a/b/c?d/e"));
assertNotNull(urival.stringToValue("/a/b/c?d/e#f/g"));

assertNotNull(urival.stringToValue("file:///a/b/c"));
assertNotNull(urival.stringToValue("file:///a/b/c?d/e"));
assertNotNull(urival.stringToValue("file:///a/b/c?d/e#f/g"));
Expand Down

0 comments on commit 0e5abc2

Please sign in to comment.