mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add SECURITY
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package cn.hutool.core.compress;
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.io.resource.FileResource;
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import cn.hutool.core.util.ZipUtil;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
@@ -13,4 +16,12 @@ public class ZipWriterTest {
|
||||
public void zipDirTest() {
|
||||
ZipUtil.zip(new File("d:/test"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void addTest(){
|
||||
final ZipWriter writer = ZipWriter.of(FileUtil.file("d:/test/test.zip"), CharsetUtil.CHARSET_UTF_8);
|
||||
writer.add(new FileResource("d:/test/qr_c.png"));
|
||||
writer.close();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user