test/jdk/nio/zipfs/ZipFSTester.java
Print this page
@@ -35,24 +35,29 @@
import static java.nio.file.StandardOpenOption.*;
import static java.nio.file.StandardCopyOption.*;
/*
* Tests various zipfs operations.
+ *
+ * @test
+ * @bug 6990846 7009092 7009085 7015391 7014948 7005986 7017840 7007596
+ * 7157656 8002390 7012868 7012856 8015728 8038500
+ * @summary Test Zip filesystem provider
*/
public class ZipFSTester {
public static void main(String[] args) throws Throwable {
-
- try (FileSystem fs = newZipFileSystem(Paths.get(args[0]),
+ try (FileSystem fs = newZipFileSystem(
+ Paths.get(System.getProperty("test.jdk"), "jre/lib/ext/zipfs.jar"),
new HashMap<String, Object>()))
{
test0(fs);
test1(fs);
test2(fs); // more tests
- testTime(Paths.get(args[0]));
}
+ testTime(Paths.get(System.getProperty("test.jdk"), "jre/lib/ext/zipfs.jar"));
}
static void test0(FileSystem fs)
throws Exception
{