diff --git a/src/test/java/org/janelia/saalfeldlab/n5/ui/TestUriValidation.java b/src/test/java/org/janelia/saalfeldlab/n5/ui/TestUriValidation.java index 24cf058c..79c92b94 100644 --- a/src/test/java/org/janelia/saalfeldlab/n5/ui/TestUriValidation.java +++ b/src/test/java/org/janelia/saalfeldlab/n5/ui/TestUriValidation.java @@ -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"));