< prev index next >

test/tools/jar/modularJar/Basic.java

Print this page
rev 17325 : 8181761: add explicit @build actions for jdk.test.lib classes in all :tier2 tests
Reviewed-by: duke


  33 import java.util.jar.Manifest;
  34 import java.util.regex.Pattern;
  35 import java.util.stream.Collectors;
  36 import java.util.stream.Stream;
  37 
  38 import jdk.test.lib.util.FileUtils;
  39 import jdk.testlibrary.JDKToolFinder;
  40 import org.testng.annotations.BeforeTest;
  41 import org.testng.annotations.DataProvider;
  42 import org.testng.annotations.Test;
  43 
  44 import static java.lang.String.format;
  45 import static java.lang.System.out;
  46 
  47 /*
  48  * @test
  49  * @bug 8167328 8171830 8165640 8174248 8176772
  50  * @library /lib/testlibrary /test/lib
  51  * @modules jdk.compiler
  52  *          jdk.jartool
  53  * @build jdk.testlibrary.JDKToolFinder







  54  * @compile Basic.java
  55  * @run testng Basic
  56  * @summary Tests for plain Modular jars & Multi-Release Modular jars
  57  */
  58 
  59 public class Basic {
  60     static final Path TEST_SRC = Paths.get(System.getProperty("test.src", "."));
  61     static final Path TEST_CLASSES = Paths.get(System.getProperty("test.classes", "."));
  62     static final Path MODULE_CLASSES = TEST_CLASSES.resolve("build");
  63     static final Path MRJAR_DIR = MODULE_CLASSES.resolve("mrjar");
  64 
  65     static final String VM_OPTIONS = System.getProperty("test.vm.opts", "");
  66     static final String TOOL_VM_OPTIONS = System.getProperty("test.tool.vm.opts", "");
  67     static final String JAVA_OPTIONS = System.getProperty("test.java.opts", "");
  68 
  69     // Details based on the checked in module source
  70     static TestModuleData FOO = new TestModuleData("foo",
  71                                                    "1.123",
  72                                                    "jdk.test.foo.Foo",
  73                                                    "Hello World!!!",




  33 import java.util.jar.Manifest;
  34 import java.util.regex.Pattern;
  35 import java.util.stream.Collectors;
  36 import java.util.stream.Stream;
  37 
  38 import jdk.test.lib.util.FileUtils;
  39 import jdk.testlibrary.JDKToolFinder;
  40 import org.testng.annotations.BeforeTest;
  41 import org.testng.annotations.DataProvider;
  42 import org.testng.annotations.Test;
  43 
  44 import static java.lang.String.format;
  45 import static java.lang.System.out;
  46 
  47 /*
  48  * @test
  49  * @bug 8167328 8171830 8165640 8174248 8176772
  50  * @library /lib/testlibrary /test/lib
  51  * @modules jdk.compiler
  52  *          jdk.jartool
  53  * @build jdk.test.lib.util.FileUtils
  54  *        jdk.test.lib.Utils
  55  *        jdk.test.lib.Asserts
  56  *        jdk.test.lib.JDKToolFinder
  57  *        jdk.test.lib.JDKToolLauncher
  58  *        jdk.test.lib.Platform
  59  *        jdk.test.lib.process.*
  60  *        jdk.testlibrary.JDKToolFinder
  61  * @compile Basic.java
  62  * @run testng Basic
  63  * @summary Tests for plain Modular jars & Multi-Release Modular jars
  64  */
  65 
  66 public class Basic {
  67     static final Path TEST_SRC = Paths.get(System.getProperty("test.src", "."));
  68     static final Path TEST_CLASSES = Paths.get(System.getProperty("test.classes", "."));
  69     static final Path MODULE_CLASSES = TEST_CLASSES.resolve("build");
  70     static final Path MRJAR_DIR = MODULE_CLASSES.resolve("mrjar");
  71 
  72     static final String VM_OPTIONS = System.getProperty("test.vm.opts", "");
  73     static final String TOOL_VM_OPTIONS = System.getProperty("test.tool.vm.opts", "");
  74     static final String JAVA_OPTIONS = System.getProperty("test.java.opts", "");
  75 
  76     // Details based on the checked in module source
  77     static TestModuleData FOO = new TestModuleData("foo",
  78                                                    "1.123",
  79                                                    "jdk.test.foo.Foo",
  80                                                    "Hello World!!!",


< prev index next >