From fd735f339cef26b8d68bc07a07e40b315eed4885 Mon Sep 17 00:00:00 2001 From: Florian Weikert Date: Fri, 27 Nov 2015 17:32:23 +0000 Subject: Migrated tests in lib/analysis to JUnit 4. -- MOS_MIGRATED_REVID=108862983 --- .../build/lib/analysis/actions/CustomCommandLineTest.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/test/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLineTest.java') 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") -- cgit v1.2.3