diff options
author | lberki <lberki@google.com> | 2017-05-31 14:34:53 +0200 |
---|---|---|
committer | László Csomor <laszlocsomor@google.com> | 2017-05-31 15:41:50 +0200 |
commit | e355e77ca9979baa4fb816c32494c5268f32eae7 (patch) | |
tree | 417e96227957ebdfe89c024fd3901b866556a8fe /src/test/java/com/google/devtools/build/lib/shell/CommandTest.java | |
parent | b3bcbd7745d00462412f9b16e0d364df19f2f2c4 (diff) |
Migrate all tests to Truth (except the ones in the examples).
RELNOTES: None.
PiperOrigin-RevId: 157576492
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/shell/CommandTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/shell/CommandTest.java | 9 |
1 files changed, 4 insertions, 5 deletions
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 caa4b42cd1..45ba27b47a 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 @@ package com.google.devtools.build.lib.shell; 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 @@ public class CommandTest { 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; } } } |