19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @summary Negative tests for jlink
27 * @bug 8130861
28 * @bug 8174718
29 * @bug 8189671
30 * @author Andrei Eremeev
31 * @enablePreview
32 * @modules java.base/jdk.internal.jimage
33 * java.base/jdk.internal.module
34 * jdk.jlink/jdk.tools.jlink.internal
35 * jdk.jlink/jdk.tools.jmod
36 * jdk.jlink/jdk.tools.jimage
37 * jdk.compiler
38 * @library /test/lib ../lib
39 * @build tests.* jdk.test.lib.util.ModuleInfoWriter
40 * @run testng JLinkNegativeTest
41 */
42
43 import java.io.File;
44 import java.io.FileOutputStream;
45 import java.io.IOException;
46 import java.io.OutputStream;
47 import java.lang.module.ModuleDescriptor;
48 import java.nio.file.FileVisitResult;
49 import java.nio.file.Files;
50 import java.nio.file.Path;
51 import java.nio.file.SimpleFileVisitor;
52 import java.nio.file.attribute.BasicFileAttributes;
53 import java.util.Arrays;
54 import java.util.List;
55 import java.util.Set;
56 import java.util.jar.JarEntry;
57 import java.util.jar.JarOutputStream;
58
59 import jdk.test.lib.util.ModuleInfoWriter;
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @summary Negative tests for jlink
27 * @bug 8130861
28 * @bug 8174718
29 * @bug 8189671
30 * @author Andrei Eremeev
31 * @enablePreview
32 * @modules java.base/jdk.internal.jimage
33 * java.base/jdk.internal.module
34 * jdk.jlink/jdk.tools.jlink.internal
35 * jdk.jlink/jdk.tools.jmod
36 * jdk.jlink/jdk.tools.jimage
37 * jdk.compiler
38 * @library /test/lib ../lib
39 * @build tests.*
40 * @run testng JLinkNegativeTest
41 */
42
43 import java.io.File;
44 import java.io.FileOutputStream;
45 import java.io.IOException;
46 import java.io.OutputStream;
47 import java.lang.module.ModuleDescriptor;
48 import java.nio.file.FileVisitResult;
49 import java.nio.file.Files;
50 import java.nio.file.Path;
51 import java.nio.file.SimpleFileVisitor;
52 import java.nio.file.attribute.BasicFileAttributes;
53 import java.util.Arrays;
54 import java.util.List;
55 import java.util.Set;
56 import java.util.jar.JarEntry;
57 import java.util.jar.JarOutputStream;
58
59 import jdk.test.lib.util.ModuleInfoWriter;
|