8242006: (zipfs) Improve Zip FS FileChannel and SeekableByteChannel test coverage
Reviewed-by: clanger
This commit is contained in:
parent
9ba424ee57
commit
6351f95bc1
test/jdk/jdk/nio/zipfs/testng
1521
test/jdk/jdk/nio/zipfs/testng/test/ChannelTests.java
Normal file
1521
test/jdk/jdk/nio/zipfs/testng/test/ChannelTests.java
Normal file
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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user