diff options
author | lberki <lberki@google.com> | 2017-05-30 12:35:33 +0200 |
---|---|---|
committer | László Csomor <laszlocsomor@google.com> | 2017-05-30 12:51:57 +0200 |
commit | aea56b36af994b269800602e36000c293cabd00b (patch) | |
tree | 794f6b3b2528353cc39bd383730d408d4ff25233 /src/test/java/com/google/devtools/build/lib/analysis/UtilTest.java | |
parent | 229f393bf460700594ae032a551879e026bd0b91 (diff) |
Migrate Java tests to Truth.
RELNOTES: None.
PiperOrigin-RevId: 157446717
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/analysis/UtilTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/analysis/UtilTest.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/analysis/UtilTest.java b/src/test/java/com/google/devtools/build/lib/analysis/UtilTest.java index 9024942379..ac34e06781 100644 --- a/src/test/java/com/google/devtools/build/lib/analysis/UtilTest.java +++ b/src/test/java/com/google/devtools/build/lib/analysis/UtilTest.java @@ -13,11 +13,9 @@ // limitations under the License. package com.google.devtools.build.lib.analysis; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import static com.google.common.truth.Truth.assertThat; import com.google.devtools.build.lib.vfs.PathFragment; - import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -30,7 +28,7 @@ public class UtilTest { @Test public void testContainsHyphen() throws Exception { - assertTrue(Util.containsHyphen(PathFragment.create("foo/bar/with-hyphen"))); - assertFalse(Util.containsHyphen(PathFragment.create("foo/bar/no/hyphen"))); + assertThat(Util.containsHyphen(PathFragment.create("foo/bar/with-hyphen"))).isTrue(); + assertThat(Util.containsHyphen(PathFragment.create("foo/bar/no/hyphen"))).isFalse(); } } |