diff options
author | Ulf Adams <ulfjack@google.com> | 2015-03-06 15:58:35 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-03-10 13:55:19 +0000 |
commit | 795895aff87cdb0a5a1e8850b17ccf3863547a1c (patch) | |
tree | fced9c8a2124bfcfb8dfe5de3ba89ae6a25065db /src/test/java/com/google/devtools/build/lib/vfs/PathFragmentWindowsTest.java | |
parent | 0bacd7c86ceade660a10193645fc93d68606cffc (diff) |
Some more cleanup.
--
MOS_MIGRATED_REVID=87942730
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/vfs/PathFragmentWindowsTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/vfs/PathFragmentWindowsTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/vfs/PathFragmentWindowsTest.java b/src/test/java/com/google/devtools/build/lib/vfs/PathFragmentWindowsTest.java index 43c94d4b8f..1e8ceaf876 100644 --- a/src/test/java/com/google/devtools/build/lib/vfs/PathFragmentWindowsTest.java +++ b/src/test/java/com/google/devtools/build/lib/vfs/PathFragmentWindowsTest.java @@ -13,6 +13,7 @@ // limitations under the License. package com.google.devtools.build.lib.vfs; +import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; @@ -167,7 +168,7 @@ public class PathFragmentWindowsTest { assertEquals("bar", new PathFragment("C:/foo/bar").getBaseName()); assertEquals("foo", new PathFragment("C:/foo").getBaseName()); // Never return the drive name as a basename. - assertEquals("", new PathFragment("C:/").getBaseName()); + assertThat(new PathFragment("C:/").getBaseName()).isEmpty(); } private static void assertPath(String expected, PathFragment actual) { @@ -177,7 +178,7 @@ public class PathFragmentWindowsTest { @Test public void testReplaceNameWindows() throws Exception { assertPath("C:/foo/baz", new PathFragment("C:/foo/bar").replaceName("baz")); - assertEquals(null, new PathFragment("C:/").replaceName("baz")); + assertNull(new PathFragment("C:/").replaceName("baz")); } @Test |