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 * @bug 8165944
27 * @summary test several jar tool input file scenarios with variations on -C
28 * options with/without a --release option. Some input files are
29 * duplicates that sometimes cause exceptions and other times do not,
30 * demonstrating identical behavior to JDK 8 jar tool.
31 * @library /test/lib
32 * @modules jdk.jartool
33 * @run testng InputFilesTest
34 */
35
36 import org.testng.Assert;
37 import org.testng.annotations.AfterMethod;
38 import org.testng.annotations.BeforeMethod;
39 import org.testng.annotations.Test;
40
41 import java.io.ByteArrayOutputStream;
42 import java.io.IOException;
43 import java.io.PrintStream;
44 import java.io.UncheckedIOException;
45 import java.nio.file.Files;
46 import java.nio.file.Path;
47 import java.nio.file.Paths;
48 import java.util.Arrays;
49 import java.util.spi.ToolProvider;
50 import java.util.stream.Stream;
51 import java.util.zip.ZipException;
52
|
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 * @bug 8165944
27 * @summary test several jar tool input file scenarios with variations on -C
28 * options with/without a --release option. Some input files are
29 * duplicates that sometimes cause exceptions and other times do not,
30 * demonstrating identical behavior to JDK 8 jar tool.
31 * @library /test/lib
32 * @modules jdk.jartool
33 * @build jdk.test.lib.Platform
34 * jdk.test.lib.util.FileUtils
35 * @run testng InputFilesTest
36 */
37
38 import org.testng.Assert;
39 import org.testng.annotations.AfterMethod;
40 import org.testng.annotations.BeforeMethod;
41 import org.testng.annotations.Test;
42
43 import java.io.ByteArrayOutputStream;
44 import java.io.IOException;
45 import java.io.PrintStream;
46 import java.io.UncheckedIOException;
47 import java.nio.file.Files;
48 import java.nio.file.Path;
49 import java.nio.file.Paths;
50 import java.util.Arrays;
51 import java.util.spi.ToolProvider;
52 import java.util.stream.Stream;
53 import java.util.zip.ZipException;
54
|