diff options
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/windows/WindowsFileSystemTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/windows/WindowsFileSystemTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/windows/WindowsFileSystemTest.java b/src/test/java/com/google/devtools/build/lib/windows/WindowsFileSystemTest.java index c66d9f3618..27261adea8 100644 --- a/src/test/java/com/google/devtools/build/lib/windows/WindowsFileSystemTest.java +++ b/src/test/java/com/google/devtools/build/lib/windows/WindowsFileSystemTest.java @@ -16,7 +16,6 @@ package com.google.devtools.build.lib.windows; import static com.google.common.truth.Truth.assertThat; import static com.google.devtools.build.lib.windows.WindowsFileSystem.SHORT_NAME_MATCHER; -import static org.junit.Assert.assertSame; import com.google.common.base.Function; import com.google.common.base.Predicate; @@ -290,8 +289,8 @@ public class WindowsFileSystemTest { assertThat(p.getPathString()).endsWith(longPath); assertThat(p).isEqualTo(fs.getPath(scratchRoot).getRelative(shortPath)); assertThat(p).isEqualTo(fs.getPath(scratchRoot).getRelative(longPath)); - assertSame(p, fs.getPath(scratchRoot).getRelative(shortPath)); - assertSame(p, fs.getPath(scratchRoot).getRelative(longPath)); + assertThat(fs.getPath(scratchRoot).getRelative(shortPath)).isSameAs(p); + assertThat(fs.getPath(scratchRoot).getRelative(longPath)).isSameAs(p); } @Test |