< prev index next >

test/java/lang/System/LoggerFinder/modules/JDKLoggerForImageTest.java

Print this page
rev 17315 : 8181335: remove packageless CompilerUtils
Reviewed-by: duke


  28 import java.nio.file.Path;
  29 import java.nio.file.Paths;
  30 import java.nio.file.StandardCopyOption;
  31 import java.util.ArrayList;
  32 import java.util.List;
  33 import java.util.stream.Stream;
  34 
  35 import jdk.testlibrary.JDKToolFinder;
  36 
  37 import static jdk.testlibrary.ProcessTools.executeCommand;
  38 
  39 /*
  40  * @test
  41  * @modules jdk.compiler
  42  * @summary Test cases which run against customized image, check the situation where
  43  *            1. logger provider is the default one supplied by java.base,
  44  *            2. clients are in named/unnamed module,
  45  *               patched system module, or Xbootclasspath
  46  *          This test does not require existence of java.logging module,
  47  *          but require jdk.compiler module
  48  * @library /lib/testlibrary
  49  * @build Base CompilerUtils jdk.testlibrary.*
  50  * @run main/othervm JDKLoggerForImageTest
  51  */
  52 
  53 public class JDKLoggerForImageTest extends Base {
  54 
  55     public static void main(String args[]) throws Throwable {
  56         JDKLoggerForImageTest t = new JDKLoggerForImageTest();
  57         t.setup();
  58         t.test();
  59     }
  60 
  61     private void setup() throws Throwable {
  62         setupAllClient();
  63 
  64         setupJavaBaseImage();
  65     }
  66 
  67     private void test() throws Throwable {
  68         if (!checkJMODS()) {
  69             return;




  28 import java.nio.file.Path;
  29 import java.nio.file.Paths;
  30 import java.nio.file.StandardCopyOption;
  31 import java.util.ArrayList;
  32 import java.util.List;
  33 import java.util.stream.Stream;
  34 
  35 import jdk.testlibrary.JDKToolFinder;
  36 
  37 import static jdk.testlibrary.ProcessTools.executeCommand;
  38 
  39 /*
  40  * @test
  41  * @modules jdk.compiler
  42  * @summary Test cases which run against customized image, check the situation where
  43  *            1. logger provider is the default one supplied by java.base,
  44  *            2. clients are in named/unnamed module,
  45  *               patched system module, or Xbootclasspath
  46  *          This test does not require existence of java.logging module,
  47  *          but require jdk.compiler module
  48  * @library /lib/testlibrary /test/lib
  49  * @build Base jdk.test.lib.compiler.CompilerUtils jdk.testlibrary.*
  50  * @run main/othervm JDKLoggerForImageTest
  51  */
  52 
  53 public class JDKLoggerForImageTest extends Base {
  54 
  55     public static void main(String args[]) throws Throwable {
  56         JDKLoggerForImageTest t = new JDKLoggerForImageTest();
  57         t.setup();
  58         t.test();
  59     }
  60 
  61     private void setup() throws Throwable {
  62         setupAllClient();
  63 
  64         setupJavaBaseImage();
  65     }
  66 
  67     private void test() throws Throwable {
  68         if (!checkJMODS()) {
  69             return;


< prev index next >