6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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 * @modules jdk.jlink/jdk.tools.jmod
27 * @library /jdk/jigsaw/lib /lib/testlibrary
28 * @build jdk.testlibrary.FileUtils CompilerUtils
29 * @run testng JmodTest
30 * @summary Basic test for jmod
31 */
32
33 import java.io.*;
34 import java.lang.module.ModuleDescriptor;
35 import java.lang.reflect.Method;
36 import java.nio.file.*;
37 import java.util.*;
38 import java.util.function.Consumer;
39 import java.util.regex.Pattern;
40 import java.util.stream.Stream;
41 import jdk.testlibrary.FileUtils;
42 import org.testng.annotations.BeforeTest;
43 import org.testng.annotations.Test;
44 import static java.lang.module.ModuleDescriptor.Version;
45 import static java.nio.charset.StandardCharsets.UTF_8;
46 import static java.util.stream.Collectors.toSet;
47 import static org.testng.Assert.*;
|
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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 * @library /jdk/jigsaw/lib /lib/testlibrary
27 * @modules jdk.jlink/jdk.tools.jmod
28 * jdk.compiler
29 * @build jdk.testlibrary.FileUtils CompilerUtils
30 * @run testng JmodTest
31 * @summary Basic test for jmod
32 */
33
34 import java.io.*;
35 import java.lang.module.ModuleDescriptor;
36 import java.lang.reflect.Method;
37 import java.nio.file.*;
38 import java.util.*;
39 import java.util.function.Consumer;
40 import java.util.regex.Pattern;
41 import java.util.stream.Stream;
42 import jdk.testlibrary.FileUtils;
43 import org.testng.annotations.BeforeTest;
44 import org.testng.annotations.Test;
45 import static java.lang.module.ModuleDescriptor.Version;
46 import static java.nio.charset.StandardCharsets.UTF_8;
47 import static java.util.stream.Collectors.toSet;
48 import static org.testng.Assert.*;
|