Class FileParserTestCase

java.lang.Object
com.jalios.jcms.test.JcmsTestCase4
com.jalios.jcms.fileprocessor.test.FileParserTestCase
All Implemented Interfaces:
JcmsConstants, JaliosConstants

public abstract class FileParserTestCase extends JcmsTestCase4
Super class of FileProcessor's FileParsers test case.
Since:
jcms-7.0
  • Constructor Details

    • FileParserTestCase

      public FileParserTestCase()
  • Method Details

    • 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(File file) throws 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:
      IOException - on error