aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java
diff options
context:
space:
mode:
authorGravatar Ulf Adams <ulfjack@google.com>2015-03-06 15:58:35 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-03-10 13:55:19 +0000
commit795895aff87cdb0a5a1e8850b17ccf3863547a1c (patch)
treefced9c8a2124bfcfb8dfe5de3ba89ae6a25065db /src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java
parent0bacd7c86ceade660a10193645fc93d68606cffc (diff)
Some more cleanup.
-- MOS_MIGRATED_REVID=87942730
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java b/src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java
index b59336725a..9e4bce3bd8 100644
--- a/src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java
+++ b/src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java
@@ -21,6 +21,7 @@ import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import com.google.common.collect.Lists;
+import com.google.common.testing.EqualsTester;
import com.google.devtools.build.lib.testutil.TestUtils;
import com.google.devtools.build.lib.vfs.util.FileSystems;
@@ -156,7 +157,7 @@ public class UnixPathTest {
Collection<Path> textFiles = UnixGlob.forPath(unixFs.getPath(tmpDir.getPath()))
.addPattern("*/*.txt")
.globInterruptible();
- assertEquals(1, textFiles.size());
+ assertThat(textFiles).hasSize(1);
Path onlyFile = textFiles.iterator().next();
assertEquals(unixFs.getPath(anotherFile.getPath()), onlyFile);
@@ -189,8 +190,7 @@ public class UnixPathTest {
Path differentPath = unixFs.getPath("/foo/bar/baz");
Object differentType = new Object();
- assertEquals(path.hashCode(), equalPath.hashCode());
- assertEquals(path, equalPath);
+ new EqualsTester().addEqualityGroup(path, equalPath).testEquals();
assertFalse(path.equals(differentPath));
assertFalse(path.equals(differentType));
}