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 void
assertPdf(java.lang.String outPdf)
protected void
comparePdf(java.lang.String outPdf, java.lang.String cmpPdf)
protected void
deleteDirectory(java.io.File path)
protected void
deleteFiles(java.io.File path)
protected java.lang.String
getCmpPdf()
Gets the name of the compare PDF file.protected abstract java.lang.String
getOutPdf()
Gets the name of the resultant PDF file.protected abstract void
makePdf(java.lang.String outPdf)
void
runTest()
-
-
-
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
,assertPdf
andcomparePdf
methods.- 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 tocomparePdf
method.- Returns:
-
deleteDirectory
protected void deleteDirectory(java.io.File path)
-
deleteFiles
protected void deleteFiles(java.io.File path)
-
-