com.itextpdf.testutils
Class ITextTest

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

public abstract class ITextTest
extends Object


Constructor Summary
ITextTest()
           
 
Method Summary
protected  void assertPdf(String outPdf)
           
protected  void comparePdf(String outPdf, String cmpPdf)
           
protected  void deleteDirectory(File path)
           
protected  void deleteFiles(File path)
           
protected  String getCmpPdf()
          Gets the name of the compare PDF file.
protected abstract  String getOutPdf()
          Gets the name of the resultant PDF file.
protected abstract  void makePdf(String outPdf)
           
 void runTest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ITextTest

public ITextTest()
Method Detail

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)


Copyright © 2014. All Rights Reserved.