Package org.gbif.utils.file
Class CompressionUtilTest
java.lang.Object
org.gbif.utils.file.CompressionUtilTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclasspathFile(String path) static FilevoidvoidvoidCheck we can unpack ZIP64 archives.voidCheck that files are closed after use.voidvoidvoidvoidTest unzipping a folder, while NOT preserving subdirectories.voidTest unzipping a folder, while preserving subdirectories, but making sure the .svn directories and their subfiles and subdirectories are not extracted.voidTest unzipping a folder, while preserving subdirectories.void
-
Constructor Details
-
CompressionUtilTest
public CompressionUtilTest()
-
-
Method Details
-
createTempDirectory
- Throws:
IOException
-
classpathFile
-
testDecompress
- Throws:
IOException
-
testUnableToDecompress
- Throws:
IOException
-
testGunzipWithTar
- Throws:
IOException
-
testGunzipNoTar
- Throws:
IOException
-
testUnzipFolderDoNotKeepSubdirectoriesOrHiddenFiles
Test unzipping a folder, while NOT preserving subdirectories.- Throws:
IOException
-
testUnzipFolderKeepSubdirectoriesButNoHiddenFile
Test unzipping a folder, while preserving subdirectories.- Throws:
IOException
-
testUnzipFolderKeepSubdirectoriesButNoHiddenDirectories
Test unzipping a folder, while preserving subdirectories, but making sure the .svn directories and their subfiles and subdirectories are not extracted.- Throws:
IOException
-
testDecompressZippedFolderWithNoSubdirectories
- Throws:
IOException
-
testZipFolder
- Throws:
IOException
-
testDecompressZippedFolderWithNoSubdirectoriesx
Check we can unpack ZIP64 archives. infozip64.zip was created withecho 'hello | zip infozip.zip -, following comments on https://bugs.openjdk.java.net/browse/JDK-8186464- Throws:
IOException
-
testFilesClosedCorrectly
Check that files are closed after use.- Throws:
Exception
-