Package com.itextpdf.testutils
Class ITextTest
- java.lang.Object
-
- com.itextpdf.testutils.ITextTest
-
public abstract class ITextTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ITextTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidassertPdf(java.lang.String outPdf)protected voidcomparePdf(java.lang.String outPdf, java.lang.String cmpPdf)protected voiddeleteDirectory(java.io.File path)protected voiddeleteFiles(java.io.File path)protected java.lang.StringgetCmpPdf()Gets the name of the compare PDF file.protected abstract java.lang.StringgetOutPdf()Gets the name of the resultant PDF file.protected abstract voidmakePdf(java.lang.String outPdf)voidrunTest()
-
-
-
Field Detail
-
LOGGER
private static final Logger LOGGER
-
-
Method Detail
-
runTest
public void runTest() throws java.lang.Exception- Throws:
java.lang.Exception
-
makePdf
protected abstract void makePdf(java.lang.String outPdf) throws java.lang.Exception- Throws:
java.lang.Exception
-
getOutPdf
protected abstract java.lang.String getOutPdf()
Gets the name of the resultant PDF file. This name will be passed tomakePdf,assertPdfandcomparePdfmethods.- Returns:
-
assertPdf
protected void assertPdf(java.lang.String outPdf) throws java.lang.Exception- Throws:
java.lang.Exception
-
comparePdf
protected void comparePdf(java.lang.String outPdf, java.lang.String cmpPdf) throws java.lang.Exception- Throws:
java.lang.Exception
-
getCmpPdf
protected java.lang.String getCmpPdf()
Gets the name of the compare PDF file. This name will be passed tocomparePdfmethod.- Returns:
-
deleteDirectory
protected void deleteDirectory(java.io.File path)
-
deleteFiles
protected void deleteFiles(java.io.File path)
-
-