< prev index next >

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

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


  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 import java.io.File;
  27 import java.nio.file.Files;
  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  * Base class for tests.
  41  * The tests focuse on that LoggerFinder works well in jigsaw environment,
  42  * i.e. make sure correct Logger can be retrieved,
  43  * also verify that basic functionality of retrieved Logger's works well.
  44  *
  45  * Note: As the test will take long time, to avoid timeout,
  46  * split it as several tests, this class is the base class for tests.
  47  */
  48 public class Base {
  49     protected static final String JAVA_HOME = System.getProperty("java.home");
  50     protected static final Path JDK_IMAGE = Paths.get(JAVA_HOME);
  51     protected static final Path JMODS = Paths.get(JAVA_HOME, "jmods");
  52 
  53     protected static final String TEST_SRC = System.getProperty("test.src");
  54 
  55     // logger client to get logger from java.base module, it should get a lazy logger




  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 import java.io.File;
  27 import java.nio.file.Files;
  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 import jdk.test.lib.compiler.CompilerUtils;
  37 
  38 import static jdk.testlibrary.ProcessTools.executeCommand;
  39 
  40 /*
  41  * Base class for tests.
  42  * The tests focuse on that LoggerFinder works well in jigsaw environment,
  43  * i.e. make sure correct Logger can be retrieved,
  44  * also verify that basic functionality of retrieved Logger's works well.
  45  *
  46  * Note: As the test will take long time, to avoid timeout,
  47  * split it as several tests, this class is the base class for tests.
  48  */
  49 public class Base {
  50     protected static final String JAVA_HOME = System.getProperty("java.home");
  51     protected static final Path JDK_IMAGE = Paths.get(JAVA_HOME);
  52     protected static final Path JMODS = Paths.get(JAVA_HOME, "jmods");
  53 
  54     protected static final String TEST_SRC = System.getProperty("test.src");
  55 
  56     // logger client to get logger from java.base module, it should get a lazy logger


< prev index next >