equal
deleted
inserted
replaced
25 * @test |
25 * @test |
26 * @bug 8168836 |
26 * @bug 8168836 |
27 * @summary Basic argument validation for --add-exports |
27 * @summary Basic argument validation for --add-exports |
28 * @library /lib/testlibrary |
28 * @library /lib/testlibrary |
29 * @modules jdk.compiler |
29 * @modules jdk.compiler |
30 * @build AddExportsTestWarningError CompilerUtils ModuleSourceBuilder |
30 * @build AddExportsTestWarningError CompilerUtils ModuleInfoMaker |
31 * @build jdk.testlibrary.* |
31 * @build jdk.testlibrary.* |
32 * @run testng AddExportsTestWarningError |
32 * @run testng AddExportsTestWarningError |
33 */ |
33 */ |
34 |
34 |
35 import java.io.BufferedOutputStream; |
35 import java.io.BufferedOutputStream; |
57 private static final String M1_MAIN = "m1/p1.C1"; |
57 private static final String M1_MAIN = "m1/p1.C1"; |
58 private static final String M3_MAIN = "m3/p3.C3"; |
58 private static final String M3_MAIN = "m3/p3.C3"; |
59 |
59 |
60 @BeforeTest |
60 @BeforeTest |
61 public void setup() throws Exception { |
61 public void setup() throws Exception { |
62 ModuleSourceBuilder builder = new ModuleSourceBuilder(SRC_DIR); |
62 ModuleInfoMaker builder = new ModuleInfoMaker(SRC_DIR); |
63 builder.writeJavaFiles("m1", |
63 builder.writeJavaFiles("m1", |
64 "module m1 { }", |
64 "module m1 { }", |
65 "package p1; public class C1 { " + |
65 "package p1; public class C1 { " + |
66 " public static void main(String... args) {}" + |
66 " public static void main(String... args) {}" + |
67 "}"); |
67 "}"); |