Migrate all tests to Truth (except the ones in the examples).
RELNOTES: None.
PiperOrigin-RevId: 157576492
diff --git a/src/test/java/com/google/devtools/build/lib/shell/CommandTest.java b/src/test/java/com/google/devtools/build/lib/shell/CommandTest.java
index caa4b42..45ba27b 100644
--- a/src/test/java/com/google/devtools/build/lib/shell/CommandTest.java
+++ b/src/test/java/com/google/devtools/build/lib/shell/CommandTest.java
@@ -16,7 +16,6 @@
import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.Truth.assertWithMessage;
import static com.google.devtools.build.lib.shell.TestUtil.assertArrayEquals;
-import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import com.google.common.collect.ImmutableMap;
@@ -397,10 +396,10 @@
assertThat(status.getTerminatingSignal()).isEqualTo(signal);
switch (signal) {
- case 1: assertEquals("Hangup", status.toShortString()); break;
- case 2: assertEquals("Interrupt", status.toShortString()); break;
- case 9: assertEquals("Killed", status.toShortString()); break;
- case 15: assertEquals("Terminated", status.toShortString()); break;
+ case 1: assertThat(status.toShortString()).isEqualTo("Hangup"); break;
+ case 2: assertThat(status.toShortString()).isEqualTo("Interrupt"); break;
+ case 9: assertThat(status.toShortString()).isEqualTo("Killed"); break;
+ case 15: assertThat(status.toShortString()).isEqualTo("Terminated"); break;
}
}
}