Class JarUtilsTest
- java.lang.Object
-
- test.de.iip_ecosphere.platform.support.JarUtilsTest
-
public class JarUtilsTest extends java.lang.ObjectTestsJarUtils.- Author:
- Holger Eichelberger, SSE
-
-
Constructor Summary
Constructors Constructor Description JarUtilsTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidassertFileExists(java.io.File base, java.lang.String name, boolean isDirectory)Asserts that a file/directory exists.private static voidassertFileNotExists(java.io.File base, java.lang.String name)Asserts that a file/directory does not exists.voidextactFile()TestsZipUtils.findFile(java.io.InputStream, String).voidextractFullZip()TestsZipUtils.extractZip(java.io.InputStream, java.nio.file.Path).voidextractPartialZip()TestsZipUtils.extractZip(java.io.InputStream, java.nio.file.Path, java.util.function.Predicate).voidtestListFiles()TestsZipUtils.listFiles(InputStream, java.util.function.Predicate, java.util.function.Consumer).
-
-
-
Method Detail
-
extractFullZip
public void extractFullZip() throws java.io.IOExceptionTestsZipUtils.extractZip(java.io.InputStream, java.nio.file.Path).- Throws:
java.io.IOException- if reading/writing fails
-
assertFileExists
private static void assertFileExists(java.io.File base, java.lang.String name, boolean isDirectory)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
private static void assertFileNotExists(java.io.File base, java.lang.String name)Asserts that a file/directory does not exists.- Parameters:
base- the base directoryname- the name/path inbaseto be asserted
-
extractPartialZip
public void extractPartialZip() throws java.io.IOExceptionTestsZipUtils.extractZip(java.io.InputStream, java.nio.file.Path, java.util.function.Predicate).- Throws:
java.io.IOException- if reading/writing fails
-
extactFile
public void extactFile() throws java.io.IOExceptionTestsZipUtils.findFile(java.io.InputStream, String).- Throws:
java.io.IOException- if reading/writing fails
-
testListFiles
public void testListFiles() throws java.io.IOExceptionTestsZipUtils.listFiles(InputStream, java.util.function.Predicate, java.util.function.Consumer).- Throws:
java.io.IOException- if reading/writing fails
-
-