Class ZipUtilsTest
java.lang.Object
test.de.iip_ecosphere.platform.support.ZipUtilsTest
Tests
ZipUtils.- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidassertFileExists(File base, String name, boolean isDirectory) Asserts that a file/directory exists.private static voidassertFileNotExists(File base, String name) Asserts that a file/directory does not exists.voidTestsZipUtils.extractZip(java.io.InputStream, java.nio.file.Path).voidTestsZipUtils.extractZip(java.io.InputStream, java.nio.file.Path, java.util.function.Predicate).voidTestsZipUtils.listFiles(InputStream, java.util.function.Predicate, java.util.function.Consumer).
-
Constructor Details
-
ZipUtilsTest
public ZipUtilsTest()
-
-
Method Details
-
extractFullZip
TestsZipUtils.extractZip(java.io.InputStream, java.nio.file.Path).- Throws:
IOException- if reading/writing fails
-
assertFileExists
Asserts that a file/directory exists.- Parameters:
base- the base directoryname- the name/path inbaseto be assertedisDirectory-trueif the specified shall be a directory,falsefor a file
-
assertFileNotExists
Asserts that a file/directory does not exists.- Parameters:
base- the base directoryname- the name/path inbaseto be asserted
-
extractPartialZip
TestsZipUtils.extractZip(java.io.InputStream, java.nio.file.Path, java.util.function.Predicate).- Throws:
IOException- if reading/writing fails
-
testListFiles
TestsZipUtils.listFiles(InputStream, java.util.function.Predicate, java.util.function.Consumer).- Throws:
IOException- if reading/writing fails
-