public abstract class WrappedSamplesRunner extends Object
Modifier and Type | Field and Description |
---|---|
protected Class> |
sampleClass |
com.itextpdf.test.WrappedSamplesRunner.RunnerParams |
sampleClassParams |
Constructor and Description |
---|
WrappedSamplesRunner() |
Modifier and Type | Method and Description |
---|---|
protected void |
addError(String error)
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[]> |
generateTestsList() |
static Collection<Object[]> |
generateTestsList(RunnerSearchConfig searchConfig) |
protected String |
getCmpPdf(String dest) |
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 |
initClass()
Creates a Class object for the example you want to test.
|
void |
runSamples() |
public com.itextpdf.test.WrappedSamplesRunner.RunnerParams sampleClassParams
protected Class> sampleClass
public static Collection<Object[]> generateTestsList()
public static Collection<Object[]> generateTestsList(RunnerSearchConfig searchConfig)
protected abstract void comparePdf(String outPath, String dest, String cmp) throws Exception
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
Exception
- If there is a problem opening the compare files
protected String getDest()
protected static String getStringField(Class> c, String name)
c
- The example class
name
- The name of the variable
protected void initClass()
protected void addError(String error)
error
- part of an error message.
Copyright © 1998–2018 iText Group NV. All rights reserved.