Class FileParserTestCase

  • All Implemented Interfaces:
    JcmsConstants, JaliosConstants

    public abstract class FileParserTestCase
    extends JcmsTestCase4
    Super class of FileProcessor's FileParsers test case.
    Since:
    jcms-7.0
    Version:
    $Revision: 118384 $
    • Constructor Detail

      • FileParserTestCase

        public FileParserTestCase()
    • Method Detail

      • waitForLuceneIndexation

        protected void waitForLuceneIndexation​(FileDocument fd)
        Wait appropriate amount of time before the specified FileDocument is indexed in JCMS. If the file is still not indexed after 5s an exception is thrown.
      • importFile

        protected FileDocument importFile​(java.io.File file)
                                   throws java.io.IOException
        Create a new FileDocument by copying the specified file into JCMS and returning the newly created FileDocument.
        Parameters:
        file - the file to import this file will be copied an left intact
        Returns:
        the newly create FileDocument
        Throws:
        java.io.IOException - on error