< prev index next >

test/jdk/tools/launcher/modules/patch/systemmodules/PatchSystemModules.java

Print this page
rev 51638 : [mq]: 8210112


  30  * @build jdk.test.lib.compiler.CompilerUtils
  31  *        jdk.test.lib.util.FileUtils
  32  *        jdk.test.lib.Platform
  33  * @run testng PatchSystemModules
  34  */
  35 
  36 import java.io.File;
  37 import java.nio.file.Files;
  38 import java.nio.file.Path;
  39 import java.nio.file.Paths;
  40 import java.util.ArrayList;
  41 import java.util.List;
  42 import java.util.stream.Stream;
  43 
  44 import jdk.test.lib.compiler.CompilerUtils;
  45 import jdk.test.lib.util.FileUtils;
  46 import jdk.testlibrary.JDKToolFinder;
  47 import org.testng.annotations.BeforeTest;
  48 import org.testng.annotations.Test;
  49 
  50 import static jdk.testlibrary.ProcessTools.executeCommand;
  51 import static org.testng.Assert.*;
  52 
  53 public class PatchSystemModules {
  54     private static final String JAVA_HOME = System.getProperty("java.home");
  55 
  56     private static final Path TEST_SRC = Paths.get(System.getProperty("test.src"));
  57 
  58     private static final Path JMODS = Paths.get(JAVA_HOME, "jmods");
  59     private static final Path MODS_DIR = Paths.get("mods");
  60     private static final Path JARS_DIR = Paths.get("jars");
  61     private static final Path PATCH_DIR = Paths.get("patches");
  62     private static final Path IMAGE = Paths.get("image");
  63     private static final Path NEW_M1_JAR = JARS_DIR.resolve("new_m1.jar");
  64 
  65     private static final String JAVA_BASE = "java.base";
  66     private final String[] modules = new String[] { "m1", "m2" };
  67 
  68     @BeforeTest
  69     private void setup() throws Throwable {
  70         Path src = TEST_SRC.resolve("src");




  30  * @build jdk.test.lib.compiler.CompilerUtils
  31  *        jdk.test.lib.util.FileUtils
  32  *        jdk.test.lib.Platform
  33  * @run testng PatchSystemModules
  34  */
  35 
  36 import java.io.File;
  37 import java.nio.file.Files;
  38 import java.nio.file.Path;
  39 import java.nio.file.Paths;
  40 import java.util.ArrayList;
  41 import java.util.List;
  42 import java.util.stream.Stream;
  43 
  44 import jdk.test.lib.compiler.CompilerUtils;
  45 import jdk.test.lib.util.FileUtils;
  46 import jdk.testlibrary.JDKToolFinder;
  47 import org.testng.annotations.BeforeTest;
  48 import org.testng.annotations.Test;
  49 
  50 import static jdk.test.lib.process.ProcessTools.executeCommand;
  51 import static org.testng.Assert.*;
  52 
  53 public class PatchSystemModules {
  54     private static final String JAVA_HOME = System.getProperty("java.home");
  55 
  56     private static final Path TEST_SRC = Paths.get(System.getProperty("test.src"));
  57 
  58     private static final Path JMODS = Paths.get(JAVA_HOME, "jmods");
  59     private static final Path MODS_DIR = Paths.get("mods");
  60     private static final Path JARS_DIR = Paths.get("jars");
  61     private static final Path PATCH_DIR = Paths.get("patches");
  62     private static final Path IMAGE = Paths.get("image");
  63     private static final Path NEW_M1_JAR = JARS_DIR.resolve("new_m1.jar");
  64 
  65     private static final String JAVA_BASE = "java.base";
  66     private final String[] modules = new String[] { "m1", "m2" };
  67 
  68     @BeforeTest
  69     private void setup() throws Throwable {
  70         Path src = TEST_SRC.resolve("src");


< prev index next >