@Test @SuppressWarnings("ResultOfObjectAllocationIgnored") public void testConstructorWithInvalidUri() throws URISyntaxException { try { FsNodePath.create((URI) null); fail(); } catch (NullPointerException expected) { } try { new FsNodePath((URI) null); fail(); } catch (NullPointerException expected) { } try { FsNodePath.create((URI) null, NULL); fail(); } catch (NullPointerException expected) { } try { new FsNodePath((URI) null, NULL); fail(); } catch (NullPointerException expected) { } try { FsNodePath.create((URI) null, CANONICALIZE); fail(); } catch (NullPointerException expected) { } try { new FsNodePath((URI) null, CANONICALIZE); fail(); } catch (NullPointerException expected) { } try { new FsNodePath((FsMountPoint) null, null); fail(); } catch (NullPointerException expected) { } for (final String param : new String[] { "/../foo#boo", "/../foo#", "/../foo", "/./foo", " "/foo", "/foo/bar", "/foo/bar/", "/", "foo#fragmentDefined", "foo/", "foo "foo/.", "foo/./", "foo/..", "foo/../", "foo:/bar/.", "foo:/bar/..", "foo:bar", "foo:bar:", "foo:bar:/", "foo:bar:/baz", "foo:bar:/baz!", "foo:bar:/baz/", "foo:bar:/baz! "foo:bar:/baz!/.", "foo:bar:/baz!/./", "foo:bar:/baz!/..", "foo:bar:/baz!/../", "foo:bar:/baz!/bang/.", "foo:bar:/baz!/bang/./", "foo:bar:/baz!/bang/..", "foo:bar:/baz!/bang/../", "foo:bar:baz:/bang", "foo:bar:baz:/bang!", "foo:bar:baz:/bang/", "foo:bar:baz:/bang!/", "foo:bar:baz:/bang!/boom", "foo:bar:/baz/.!/", "foo:bar:/baz/./!/", "foo:bar:/baz/..!/", "foo:bar:/baz/../!/", "foo:bar:/baz/../!/bang/", "foo:bar:/baz/..!/bang/", "foo:bar:/baz/./!/bang/", "foo:bar:/baz/.!/bang/", "foo:bar:/../baz/!/bang/", "foo:bar:/./baz/!/bang/", "foo:bar: "foo:bar: "foo:bar:/!/bang/", "foo:bar:/baz/../!/bang", "foo:bar:/baz/..!/bang", "foo:bar:/baz/./!/bang", "foo:bar:/baz/.!/bang", "foo:bar:/../baz/!/bang", "foo:bar:/./baz/!/bang", "foo:bar: "foo:bar: "foo:bar:/!/bang", "foo:bar:/baz/!/", "foo:bar:/baz/?bang!/?plonk", "foo:bar:/baz "foo:bar:/baz/./!/", "foo:bar:/baz/..!/", "foo:bar:/baz/../!/", " }) { final URI uri = URI.create(param); try { FsNodePath.create(uri); fail(param); } catch (IllegalArgumentException expected) { } try { new FsNodePath(uri); fail(param); } catch (URISyntaxException expected) { } } }
public static FsNodePath create(URI uri) { return create(uri, NULL); }
FsNodePath implements Serializable, Comparable<FsNodePath> { public static FsNodePath create(URI uri) { return create(uri, NULL); } }
FsNodePath implements Serializable, Comparable<FsNodePath> { public static FsNodePath create(URI uri) { return create(uri, NULL); } FsNodePath(File file); @ConstructorProperties("uri")  FsNodePath(URI uri);  FsNodePath(URI uri, FsUriModifier modifier);  FsNodePath(
            final @CheckForNull FsMountPoint mountPoint,
            final FsNodeName nodeName); }
FsNodePath implements Serializable, Comparable<FsNodePath> { public static FsNodePath create(URI uri) { return create(uri, NULL); } FsNodePath(File file); @ConstructorProperties("uri")  FsNodePath(URI uri);  FsNodePath(URI uri, FsUriModifier modifier);  FsNodePath(
            final @CheckForNull FsMountPoint mountPoint,
            final FsNodeName nodeName); static FsNodePath create(URI uri); static FsNodePath create(URI uri, FsUriModifier modifier); URI getUri(); URI toHierarchicalUri(); @Nullable FsMountPoint getMountPoint(); FsNodeName getNodeName(); FsNodePath resolve(final FsNodeName nodeName); @Override int compareTo(FsNodePath that); @Override boolean equals(@CheckForNull Object that); @Override int hashCode(); @Override String toString(); }
FsNodePath implements Serializable, Comparable<FsNodePath> { public static FsNodePath create(URI uri) { return create(uri, NULL); } FsNodePath(File file); @ConstructorProperties("uri")  FsNodePath(URI uri);  FsNodePath(URI uri, FsUriModifier modifier);  FsNodePath(
            final @CheckForNull FsMountPoint mountPoint,
            final FsNodeName nodeName); static FsNodePath create(URI uri); static FsNodePath create(URI uri, FsUriModifier modifier); URI getUri(); URI toHierarchicalUri(); @Nullable FsMountPoint getMountPoint(); FsNodeName getNodeName(); FsNodePath resolve(final FsNodeName nodeName); @Override int compareTo(FsNodePath that); @Override boolean equals(@CheckForNull Object that); @Override int hashCode(); @Override String toString();  }