Class FileUtilsTest

java.lang.Object
test.de.iip_ecosphere.platform.support.FileUtilsTest

public class FileUtilsTest extends Object
Tests FileUtils.
Author:
Holger Eichelberger, SSE
  • 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

      public void testCreateTmpFolder() throws IOException
      Tests creating a temporary folder.
      Throws:
      IOException
    • testCloseQuietly

      public void testCloseQuietly()
      Tests closing quietly.
    • testListFiles

      public void testListFiles()
      Tests FileUtils.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

      public void testDeleteOnExit() throws IOException
      Tests FileUtils.deleteOnExit(File).
      Throws:
      IOException - shall not occur
    • testSystemRoot

      public void testSystemRoot()
      Tests FileUtils.getSystemRoot().
    • testTemp

      public void testTemp() throws IOException
      Tests FileUtils.createTmpFolder(String, boolean).
      Throws:
      IOException
    • testProperties

      public void testProperties()
      Tests properties returned by FileUtils.
    • testBase64

      public void testBase64() throws IOException
      Tests the base64 methods.
      Throws:
      IOException - shall not occur
    • testDelegated

      public void testDelegated() throws IOException
      Tests delegated (but not implemented) plugin operations.
      Throws:
      IOException - shall not occur