Class FileUtilsTest
java.lang.Object
test.de.iip_ecosphere.platform.support.FileUtilsTest
Tests
FileUtils.- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intprivate static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidsetNumberTestFiles(int number) Sets the number of test files to be found.protected static voidsetNumberTestNotServiceFiles(int number) Sets the number of not service files to be found.voidTests the base64 methods.voidTests closing quietly.voidTests creating a temporary folder.voidTests delegated (but not implemented) plugin operations.voidTestsFileUtils.deleteOnExit(File).voidTestsFileUtils.listFiles(File, java.util.function.Predicate, java.util.function.Consumer).voidTests properties returned byFileUtils.voidTests file resolution methods.voidTests sanitizing file names.voidTestsFileUtils.getSystemRoot().voidtestTemp()TestsFileUtils.createTmpFolder(String, boolean).voidTests the temporary directory access.
-
Field Details
-
numberTestFiles
private static int numberTestFiles -
numberTestNotServiceFiles
private static int numberTestNotServiceFiles
-
-
Constructor Details
-
FileUtilsTest
public FileUtilsTest()
-
-
Method Details
-
setNumberTestFiles
protected static void setNumberTestFiles(int number) Sets the number of test files to be found.- Parameters:
number- the number
-
setNumberTestNotServiceFiles
protected static void setNumberTestNotServiceFiles(int number) Sets the number of not service files to be found.- Parameters:
number- the number
-
testTempDir
public void testTempDir()Tests the temporary directory access. -
testCreateTmpFolder
Tests creating a temporary folder.- Throws:
IOException
-
testCloseQuietly
public void testCloseQuietly()Tests closing quietly. -
testListFiles
public void testListFiles()TestsFileUtils.listFiles(File, java.util.function.Predicate, java.util.function.Consumer). -
testResolution
public void testResolution()Tests file resolution methods. -
testSanitize
public void testSanitize()Tests sanitizing file names. -
testDeleteOnExit
TestsFileUtils.deleteOnExit(File).- Throws:
IOException- shall not occur
-
testSystemRoot
public void testSystemRoot()TestsFileUtils.getSystemRoot(). -
testTemp
TestsFileUtils.createTmpFolder(String, boolean).- Throws:
IOException
-
testProperties
public void testProperties()Tests properties returned byFileUtils. -
testBase64
Tests the base64 methods.- Throws:
IOException- shall not occur
-
testDelegated
Tests delegated (but not implemented) plugin operations.- Throws:
IOException- shall not occur
-