public class ZipUtilTest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.TemporaryFolder |
temp |
| Constructor and Description |
|---|
ZipUtilTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeMocks() |
static void |
mockCommon() |
void |
testAddDataToZip() |
void |
testAddDirToZip_preservesStructureAndSeparators() |
void |
testAddFileToZip_withCustomNameAndRoot() |
void |
testAddFileToZip_withZipRoot() |
void |
testUnzip_preventsPathTraversal() |
void |
testZipFilesAndUnzip_roundtrip() |
public static void mockCommon()
public static void closeMocks()
public void testZipFilesAndUnzip_roundtrip()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddDirToZip_preservesStructureAndSeparators()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddFileToZip_withZipRoot()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddFileToZip_withCustomNameAndRoot()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddDataToZip()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnzip_preventsPathTraversal()
throws java.lang.Exception
java.lang.Exception