diff options
author | Florian Weikert <fwe@google.com> | 2015-11-27 17:32:23 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2015-11-30 18:30:28 +0000 |
commit | fd735f339cef26b8d68bc07a07e40b315eed4885 (patch) | |
tree | ed373af3cd0a4fa8ab347e11e188e567a6e0e90e /src/test/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLineTest.java | |
parent | 3885ba23867fd506250228c45f99f5b63dc91cb4 (diff) |
Migrated tests in lib/analysis to JUnit 4.
--
MOS_MIGRATED_REVID=108862983
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLineTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLineTest.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLineTest.java b/src/test/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLineTest.java index 50b3bc0b68..3b61e4fcdf 100644 --- a/src/test/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLineTest.java +++ b/src/test/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLineTest.java @@ -17,10 +17,17 @@ import static com.google.common.truth.Truth.assertThat; import com.google.common.collect.ImmutableList; import com.google.devtools.build.lib.actions.Artifact; -import com.google.devtools.build.lib.analysis.util.BuildViewTestCase; +import com.google.devtools.build.lib.analysis.util.BuildViewTestCaseForJunit4; import com.google.devtools.build.lib.vfs.PathFragment; -public class CustomCommandLineTest extends BuildViewTestCase { +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public class CustomCommandLineTest extends BuildViewTestCaseForJunit4 { + + @Test public void testAddBeforeEachPath() { CustomCommandLine commandLine = new CustomCommandLine.Builder() .add("foo") @@ -35,6 +42,7 @@ public class CustomCommandLineTest extends BuildViewTestCase { .inOrder(); } + @Test public void testAddBeforeEach() { CustomCommandLine commandLine = new CustomCommandLine.Builder() .add("foo") @@ -49,6 +57,7 @@ public class CustomCommandLineTest extends BuildViewTestCase { .inOrder(); } + @Test public void testAddBeforeEachExecPath() throws Exception { CustomCommandLine commandLine = new CustomCommandLine.Builder() .add("foo") @@ -63,6 +72,7 @@ public class CustomCommandLineTest extends BuildViewTestCase { .inOrder(); } + @Test public void testAddFormatEach() { CustomCommandLine commandLine = new CustomCommandLine.Builder() .add("foo") |