8242006: (zipfs) Improve Zip FS FileChannel and SeekableByteChannel test coverage

Reviewed-by: clanger
This commit is contained in:
Lance Andersen 2020-04-07 09:03:05 -04:00
parent 9ba424ee57
commit 6351f95bc1
2 changed files with 1537 additions and 0 deletions
test/jdk/jdk/nio/zipfs/testng

File diff suppressed because it is too large Load Diff

@ -69,6 +69,22 @@ public class ZipFsBaseTest {
};
}
/*
* DataProvider used to verify that an entry can be copied or moved within
* a Zip file system using a different compression from when the entry
* was first created
*/
@DataProvider(name = "copyMoveMap")
protected Object[][] copyMoveMap() {
return new Object[][]{
{Map.of("create", "true"), ZipEntry.DEFLATED, ZipEntry.STORED},
{Map.of("create", "true", "noCompression", "true"),
ZipEntry.STORED, ZipEntry.DEFLATED},
{Map.of("create", "true", "noCompression", "false"),
ZipEntry.DEFLATED, ZipEntry.STORED}
};
}
/**
* DataProvider with the compression methods to be used for a given test run
*