Package com.itextpdf.test
Class WrappedSamplesRunner
java.lang.Object
com.itextpdf.test.WrappedSamplesRunner
-
Field Summary
Modifier and TypeFieldDescriptionprotected Class>
com.itextpdf.test.WrappedSamplesRunner.RunnerParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Helper method to construct error messages.protected abstract void
comparePdf
(String outPath, String dest, String cmp) Compares two PDF files using iText's CompareTool.static Collection<Object[]>
static Collection<Object[]>
generateTestsList
(RunnerSearchConfig searchConfig) protected String
protected String
getDest()
Gets the path to the resulting PDF from the sample class;protected String
getOutPath
(String dest) protected static String
getStringField
(Class> c, String name) Returns a string value that is stored as a static variable inside an example class.protected void
Creates a Class object for the example you want to test.protected void
runMain()
void
-
Field Details
-
sampleClassParams
public com.itextpdf.test.WrappedSamplesRunner.RunnerParams sampleClassParams -
sampleClass
-
-
Constructor Details
-
WrappedSamplesRunner
public WrappedSamplesRunner()
-
-
Method Details
-
generateTestsList
-
generateTestsList
-
runSamples
- Throws:
-
Exception
-
comparePdf
Compares two PDF files using iText's CompareTool.- Parameters:
-
outPath
- The path to the working folder where comparison results and temp files will be created -
dest
- The PDF that resulted from the test -
cmp
- The reference PDF - Throws:
-
Exception
- If there is a problem opening the compare files
-
getDest
Gets the path to the resulting PDF from the sample class;- Returns:
- a path to a resulting PDF
-
getCmpPdf
-
getOutPath
-
getStringField
Returns a string value that is stored as a static variable inside an example class.- Parameters:
-
c
- The example class -
name
- The name of the variable - Returns:
- The value of the variable
-
initClass
protected void initClass()Creates a Class object for the example you want to test. -
addError
Helper method to construct error messages.- Parameters:
-
error
- part of an error message.
-
runMain
-