commit | 33ce2112a71e79a85b48afa518e7f0804cb383d1 | [log] [tgz] |
---|---|---|
author | Han-Wen Nienhuys <hanwen@google.com> | Fri Sep 25 14:25:38 2015 +0000 |
committer | Han-Wen Nienhuys <hanwen@google.com> | Fri Sep 25 14:43:13 2015 +0000 |
tree | 1446727be8f2a3e6fc7fc48bef19361db7281803 | |
parent | f88f4d81acead9ef3e2f73d9a44afd76c2c239c1 [diff] [blame] |
Use JUnit4 for skylark tests. -- Change-Id: I3cf7a8127da60d93005594d73abbdb8f7bda7cf2 Reviewed-on: https://bazel-review.googlesource.com/#/c/2041 MOS_MIGRATED_REVID=103940423
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java b/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java index d027adb..f956f94 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java
@@ -30,6 +30,7 @@ import com.google.devtools.build.lib.syntax.ClassObject.SkylarkClassObject; import com.google.devtools.build.lib.testutil.TestMode; +import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -39,7 +40,8 @@ */ @RunWith(JUnit4.class) public class SkylarkEvaluationTest extends EvaluationTest { - public SkylarkEvaluationTest() throws Exception { + @Before + public void setup() throws Exception { setMode(TestMode.SKYLARK); }