@Test public void asStringForRelativeParentWithoutSlashInTheEnd() { MatcherAssert.assertThat( new FileSystemPathRelative("a/b", "a/b/c").path(), Matchers.is(new PathMatcher("c"))); }
@Override public final Path path() { if (fromPath.equals(artifactPath)) return artifactPath.path(); return fromPath.path().relativize(artifactPath.path()); }
FileSystemPathRelative implements FileSystemPath { @Override public final Path path() { if (fromPath.equals(artifactPath)) return artifactPath.path(); return fromPath.path().relativize(artifactPath.path()); } }
FileSystemPathRelative implements FileSystemPath { @Override public final Path path() { if (fromPath.equals(artifactPath)) return artifactPath.path(); return fromPath.path().relativize(artifactPath.path()); } FileSystemPathRelative(Path fromPath, String artifactPath);  FileSystemPathRelative(String fromPath, String artifactPath);  FileSystemPathRelative(FileSystemPath fromPath, FileSystemPath artifactPath); }
FileSystemPathRelative implements FileSystemPath { @Override public final Path path() { if (fromPath.equals(artifactPath)) return artifactPath.path(); return fromPath.path().relativize(artifactPath.path()); } FileSystemPathRelative(Path fromPath, String artifactPath);  FileSystemPathRelative(String fromPath, String artifactPath);  FileSystemPathRelative(FileSystemPath fromPath, FileSystemPath artifactPath); @Override final Path path(); @Override final boolean exist(); }
FileSystemPathRelative implements FileSystemPath { @Override public final Path path() { if (fromPath.equals(artifactPath)) return artifactPath.path(); return fromPath.path().relativize(artifactPath.path()); } FileSystemPathRelative(Path fromPath, String artifactPath);  FileSystemPathRelative(String fromPath, String artifactPath);  FileSystemPathRelative(FileSystemPath fromPath, FileSystemPath artifactPath); @Override final Path path(); @Override final boolean exist();  }