@Override public boolean isSameFile(final Path path, final Path path2) throws IOException { return delegate.isSameFile(path, path2); }
@Test public void testToRealPathOfUnnormalizedIsSamePath() throws Exception { Path file = getFile(); assertThat( FS.provider().isSameFile( unnormalize( file ).toRealPath(), file ) ).isTrue(); }
@Override public boolean isSameFile(Path path, Path path2) throws IOException { BundleFileSystem fs = (BundleFileSystem) path.getFileSystem(); return origProvider(path).isSameFile(fs.unwrap(path), fs.unwrap(path2)); }
@Test public void testIsSameFileOtherProvider2() throws IOException { assertThat( FS.provider().isSameFile( getFile(), otherProviderAbsA() ) ).isFalse(); }
@Test public void testIsSameFileOfSameContentDifferentPathIsNot() throws IOException { assertThat( FS.provider().isSameFile( fileTA(), fileTB() ) ).isFalse(); }
@Test public void testIsSameFileOtherProvider() throws IOException { assertThat( FS.provider().isSameFile( otherProviderAbsA(), getFile() ) ).isFalse(); }
@Test public void testIsSameFileOfDifferentPathNonExistingFileIsNot() throws IOException { assertThat( FS.provider().isSameFile( getFile(), getNonExistingPath() ) ).isFalse(); }
@Test @Category( { SecondFileSystem.class } ) public void testIsSameFileDifferentFSIsFalse() throws IOException { assertThat( FS.provider().isSameFile( absAB(), otherFSFileTA() )).isFalse(); }
@Override public boolean isSameFile(Path path, Path path2) throws IOException { Path r = unroot(path); Path r2 = unroot(path2); FileSystemProvider p = provider(r); return p.isSameFile(r, r2); }
@Override public boolean isSameFile(Path path, Path path2) throws IOException { Path r = unroot(path); Path r2 = unroot(path2); FileSystemProvider p = provider(r); return p.isSameFile(r, r2); }
@Override public boolean isSameFile(Path path, Path path2) throws IOException { Path r = unroot(path); Path r2 = unroot(path2); FileSystemProvider p = provider(r); return p.isSameFile(r, r2); }
@Override public boolean isSameFile(final Path path, final Path path2) throws IOException {return wrapped().isSameFile(unwrap(path), unwrap(path2));}
@Test public void testIsSameFileWithUnnormalizedPath() throws IOException { assertThat( FS.provider().isSameFile( getFile(), unnormalize( getFile() ) ) ).isTrue(); }
@Test @Category( WorkingDirectoryInPlaygroundTree.class ) public void testIsSameFileWithRelativePath() throws IOException { assertThat( FS.provider().isSameFile( getFile(), relativize( getFile() ) ) ).isTrue(); }