Class FilesystemArchiveTestResourceProvider

    • Constructor Detail

      • FilesystemArchiveTestResourceProvider

        public FilesystemArchiveTestResourceProvider()
        Creates a new instance.
    • Method Detail

      • addRecursively

        public void addRecursively​(java.io.File aResourceFile)
                            throws java.io.IOException
        Adds the given resource recursively, that is if it is a directory all enclosed directories and files are recursively included as well.
        Parameters:
        aResourceFile - Resource to be added. May be a script file, a directory, or an archive (ending on .zip or .jar)
        Throws:
        java.io.IOException
      • addAllRecursively

        public void addAllRecursively​(java.util.Collection<? extends java.io.File> someResourceFiles)
                               throws java.io.IOException
        Adds the given resources recursively, that is if one of them is a directory all enclosed directories and files of it are recursively included as well.
        Parameters:
        someResourceFiles - Resources to be added.
        Throws:
        java.io.IOException
      • addScriptFile

        public void addScriptFile​(java.io.File aResourceFile)
        Adds the given resource if it is a plain script file. The file will only be added if it ends with the AbstractTestResourceProvider.INTEGRITY_TEST_FILES_SUFFIX suffix!
        Parameters:
        aResourceFile - the resource file to add
      • addArchiveFile

        public void addArchiveFile​(java.io.File anArchiveFile,
                                   boolean aRecursiveFlag)
                            throws java.io.IOException
        Adds the given archive file resource. This automatically adds all Integrity scripts (ending on the AbstractTestResourceProvider.INTEGRITY_TEST_FILES_SUFFIX suffix) within this archive.
        Parameters:
        anArchiveFile - the archive to add
        aRecursiveFlag - whether archives inside archives shall be searched too
        Throws:
        java.io.IOException