Class FilesystemArchiveTestResourceProvider

    • Constructor Detail

      • FilesystemArchiveTestResourceProvider

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

      • addRecursively

        public void addRecursively​(File aResourceFile)
                            throws 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:
        IOException
      • addAllRecursively

        public void addAllRecursively​(Collection<? extends File> someResourceFiles)
                               throws 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:
        IOException
      • addArchiveFile

        public void addArchiveFile​(File anArchiveFile,
                                   boolean aRecursiveFlag)
                            throws 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:
        IOException