< prev index next >

test/tools/jar/modularJar/Basic.java

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


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


< prev index next >