@Test @SuppressWarnings("ResultOfObjectAllocationIgnored") public void testConstructorWithValidUri() { for (final String[] params : new String[][] { { "foo:bar:baz:/bä%20ng!/bö%20öm!/plö%20nk", "foo:bar:baz:/bä%20ng!/bö%20öm!/", "plö%20nk" }, { "foo:bar:baz:/bäng!/bööm!/plönk", "foo:bar:baz:/bäng!/bööm!/", "plönk" }, { "foo:bar:baz:/bang!/boom!/plonk", "foo:bar:baz:/bang!/boom!/", "plonk" }, { "foo:bar:baz:/bang!/boom!/", "foo:bar:baz:/bang!/boom!/", "" }, { "foo:bar:/baz!/bang/../", "foo:bar:/baz!/", "" }, { "foo:bar:/baz!/bang/..", "foo:bar:/baz!/", "" }, { "foo:bar:/baz!/bang", "foo:bar:/baz!/", "bang" }, { "foo:bar:/baz!/./", "foo:bar:/baz!/", "" }, { "foo:bar:/baz!/.", "foo:bar:/baz!/", "" }, { "foo:bar:/baz!/", "foo:bar:/baz!/", "" }, { "foo:bar:/baz?bang!/?plonk", "foo:bar:/baz?bang!/", "?plonk" }, { "foo:bar:/baz!/bang/..", "foo:bar:/baz!/", "" }, { "foo:bar:/baz!/bang/../", "foo:bar:/baz!/", "" }, { "", null, "", }, { "foo", null, "foo" }, { "foo/..", null, "" }, { "foo/../", null, "" }, { "foo/bar", null, "foo/bar" }, { "foo:/", "foo:/", "" }, { "foo:/bar", "foo:/", "bar" }, { "foo:/bar/", "foo:/", "bar" }, { "foo:/bar { "foo:/bar/.", "foo:/", "bar" }, { "foo:/bar/./", "foo:/", "bar" }, { "foo:/bar/..", "foo:/", "" }, { "foo:/bar/../", "foo:/", "" }, { "foo:/bar/baz", "foo:/bar/", "baz" }, { "foo:/bar/baz?bang", "foo:/bar/", "baz?bang" }, { "foo:/bar/baz/", "foo:/bar/", "baz" }, { "foo:/bar/baz/?bang", "foo:/bar/", "baz?bang" }, { "file: { "file: { "file: { "file:/foo/c%3A { "file: { "file:/c: { "file:/c%3A", "file:/", "c%3A" }, { "föö/", null, "föö" }, { "/föö", null, "föö" }, { " { " { "/föö/", null, "föö" }, { "/C%3A/", null, "C%3A" }, { "C%3A/", null, "C%3A" }, }) { FsNodePath path = FsNodePath.create(URI.create(params[0]), CANONICALIZE); final FsMountPoint mountPoint = null == params[1] ? null : FsMountPoint.create(URI.create(params[1])); final FsNodeName nodeName = FsNodeName.create(URI.create(params[2])); assertPath(path, mountPoint, nodeName); path = new FsNodePath(mountPoint, nodeName); assertPath(path, mountPoint, nodeName); } }
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();  }