Class ITextTest

java.lang.Object
com.itextpdf.testutils.ITextTest

public abstract class ITextTest extends Object
  • Field Details

    • LOGGER

      private static final Logger LOGGER
  • Constructor Details

    • ITextTest

      public ITextTest()
  • Method Details

    • runTest

      public void runTest() throws Exception
      Throws:
      Exception
    • makePdf

      protected abstract void makePdf(String outPdf) throws Exception
      Throws:
      Exception
    • getOutPdf

      protected abstract String getOutPdf()
      Gets the name of the resultant PDF file. This name will be passed to makePdf, assertPdf and comparePdf methods.
      Returns:
    • assertPdf

      protected void assertPdf(String outPdf) throws Exception
      Throws:
      Exception
    • comparePdf

      protected void comparePdf(String outPdf, String cmpPdf) throws Exception
      Throws:
      Exception
    • getCmpPdf

      protected String getCmpPdf()
      Gets the name of the compare PDF file. This name will be passed to comparePdf method.
      Returns:
    • deleteDirectory

      protected void deleteDirectory(File path)
    • deleteFiles

      protected void deleteFiles(File path)