From aea56b36af994b269800602e36000c293cabd00b Mon Sep 17 00:00:00 2001 From: lberki Date: Tue, 30 May 2017 12:35:33 +0200 Subject: Migrate Java tests to Truth. RELNOTES: None. PiperOrigin-RevId: 157446717 --- .../com/google/devtools/build/lib/analysis/DuplicateActionTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/java/com/google/devtools/build/lib/analysis/DuplicateActionTest.java') diff --git a/src/test/java/com/google/devtools/build/lib/analysis/DuplicateActionTest.java b/src/test/java/com/google/devtools/build/lib/analysis/DuplicateActionTest.java index 655b86f674..257edfb9f0 100644 --- a/src/test/java/com/google/devtools/build/lib/analysis/DuplicateActionTest.java +++ b/src/test/java/com/google/devtools/build/lib/analysis/DuplicateActionTest.java @@ -14,7 +14,7 @@ package com.google.devtools.build.lib.analysis; -import static org.junit.Assert.assertFalse; +import static com.google.common.truth.Truth.assertThat; import com.google.devtools.build.lib.analysis.util.AnalysisTestCase; import org.junit.Test; @@ -37,7 +37,7 @@ public class DuplicateActionTest extends AnalysisTestCase { "cc_binary(name = 'b', srcs = ['b.cc'], deps = [':c'], stamp = 1)", "cc_library(name = 'c', linkstamp = 'stamp.cc')"); update("//a:a", "//a:b"); - assertFalse(hasErrors(getConfiguredTarget("//a:a"))); - assertFalse(hasErrors(getConfiguredTarget("//a:b"))); + assertThat(hasErrors(getConfiguredTarget("//a:a"))).isFalse(); + assertThat(hasErrors(getConfiguredTarget("//a:b"))).isFalse(); } } -- cgit v1.2.3