< prev index next >

test/jdk/java/security/Provider/SecurityProviderModularTest.java

Print this page

 34 import java.util.Arrays;
 35 import java.util.stream.Stream;
 36 import java.io.File;
 37 import java.io.IOException;
 38 import java.io.OutputStream;
 39 import java.lang.module.ModuleDescriptor;
 40 import java.lang.module.ModuleDescriptor.Builder;
 41 import jdk.test.lib.process.ProcessTools;
 42 import jdk.test.lib.util.JarUtils;
 43 import jdk.test.lib.util.ModuleInfoWriter;
 44 
 45 /*
 46  * @test
 47  * @bug 8130360 8183310
 48  * @summary Test security provider in different combination of modular option
 49  *          defined with(out) service description.
 50  * @enablePreview
 51  * @modules java.base/jdk.internal.module
 52  * @library /test/lib
 53  * @build jdk.test.lib.util.JarUtils
 54  *        jdk.test.lib.util.ModuleInfoWriter
 55  *        TestProvider TestClient
 56  * @run main SecurityProviderModularTest CL true
 57  * @run main SecurityProviderModularTest CL false
 58  * @run main SecurityProviderModularTest SL true
 59  * @run main SecurityProviderModularTest SL false
 60  * @run main SecurityProviderModularTest SPN true
 61  * @run main SecurityProviderModularTest SPN false
 62  * @run main SecurityProviderModularTest SPT true
 63  * @run main SecurityProviderModularTest SPT false
 64  */
 65 public class SecurityProviderModularTest {
 66 
 67     private static final Path TEST_CLASSES
 68             = Paths.get(System.getProperty("test.classes"));
 69     private static final Path ARTIFACT_DIR = Paths.get("jars");
 70     private static final Path SEC_FILE = Paths.get("java.extn.security");
 71     private static final String PS = File.pathSeparator;
 72     private static final String P_TYPE = "p.TestProvider";
 73     private static final String C_TYPE = "c.TestClient";
 74 

 34 import java.util.Arrays;
 35 import java.util.stream.Stream;
 36 import java.io.File;
 37 import java.io.IOException;
 38 import java.io.OutputStream;
 39 import java.lang.module.ModuleDescriptor;
 40 import java.lang.module.ModuleDescriptor.Builder;
 41 import jdk.test.lib.process.ProcessTools;
 42 import jdk.test.lib.util.JarUtils;
 43 import jdk.test.lib.util.ModuleInfoWriter;
 44 
 45 /*
 46  * @test
 47  * @bug 8130360 8183310
 48  * @summary Test security provider in different combination of modular option
 49  *          defined with(out) service description.
 50  * @enablePreview
 51  * @modules java.base/jdk.internal.module
 52  * @library /test/lib
 53  * @build jdk.test.lib.util.JarUtils

 54  *        TestProvider TestClient
 55  * @run main SecurityProviderModularTest CL true
 56  * @run main SecurityProviderModularTest CL false
 57  * @run main SecurityProviderModularTest SL true
 58  * @run main SecurityProviderModularTest SL false
 59  * @run main SecurityProviderModularTest SPN true
 60  * @run main SecurityProviderModularTest SPN false
 61  * @run main SecurityProviderModularTest SPT true
 62  * @run main SecurityProviderModularTest SPT false
 63  */
 64 public class SecurityProviderModularTest {
 65 
 66     private static final Path TEST_CLASSES
 67             = Paths.get(System.getProperty("test.classes"));
 68     private static final Path ARTIFACT_DIR = Paths.get("jars");
 69     private static final Path SEC_FILE = Paths.get("java.extn.security");
 70     private static final String PS = File.pathSeparator;
 71     private static final String P_TYPE = "p.TestProvider";
 72     private static final String C_TYPE = "c.TestClient";
 73 
< prev index next >