diff options
author | 2017-05-30 12:35:33 +0200 | |
---|---|---|
committer | 2017-05-30 12:51:57 +0200 | |
commit | aea56b36af994b269800602e36000c293cabd00b (patch) | |
tree | 794f6b3b2528353cc39bd383730d408d4ff25233 /src/test/java/com/google/devtools/build/skyframe/CycleDeduperTest.java | |
parent | 229f393bf460700594ae032a551879e026bd0b91 (diff) |
Migrate Java tests to Truth.
RELNOTES: None.
PiperOrigin-RevId: 157446717
Diffstat (limited to 'src/test/java/com/google/devtools/build/skyframe/CycleDeduperTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/skyframe/CycleDeduperTest.java | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/test/java/com/google/devtools/build/skyframe/CycleDeduperTest.java b/src/test/java/com/google/devtools/build/skyframe/CycleDeduperTest.java index 5a3f084de2..bd14fe7a69 100644 --- a/src/test/java/com/google/devtools/build/skyframe/CycleDeduperTest.java +++ b/src/test/java/com/google/devtools/build/skyframe/CycleDeduperTest.java @@ -13,12 +13,10 @@ // limitations under the License. package com.google.devtools.build.skyframe; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.fail; import com.google.common.collect.ImmutableList; - import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -31,15 +29,15 @@ public class CycleDeduperTest { @Test public void simple() throws Exception { - assertTrue(cycleDeduper.seen(ImmutableList.of("a", "b"))); - assertFalse(cycleDeduper.seen(ImmutableList.of("a", "b"))); - assertFalse(cycleDeduper.seen(ImmutableList.of("b", "a"))); - - assertTrue(cycleDeduper.seen(ImmutableList.of("a", "b", "c"))); - assertFalse(cycleDeduper.seen(ImmutableList.of("b", "c", "a"))); - assertFalse(cycleDeduper.seen(ImmutableList.of("c", "a", "b"))); - assertTrue(cycleDeduper.seen(ImmutableList.of("b", "a", "c"))); - assertFalse(cycleDeduper.seen(ImmutableList.of("c", "b", "a"))); + assertThat(cycleDeduper.seen(ImmutableList.of("a", "b"))).isTrue(); + assertThat(cycleDeduper.seen(ImmutableList.of("a", "b"))).isFalse(); + assertThat(cycleDeduper.seen(ImmutableList.of("b", "a"))).isFalse(); + + assertThat(cycleDeduper.seen(ImmutableList.of("a", "b", "c"))).isTrue(); + assertThat(cycleDeduper.seen(ImmutableList.of("b", "c", "a"))).isFalse(); + assertThat(cycleDeduper.seen(ImmutableList.of("c", "a", "b"))).isFalse(); + assertThat(cycleDeduper.seen(ImmutableList.of("b", "a", "c"))).isTrue(); + assertThat(cycleDeduper.seen(ImmutableList.of("c", "b", "a"))).isFalse(); } @Test |