Constructor and Description |
---|
TextValidator(com.pdfunit.internal.spi.IDocument pdfDocument) |
Modifier and Type | Method and Description |
---|---|
TextValidator |
containing(java.lang.String... expectedTokens)
This method verifies that the text on every page in effect contains all given arguments.
|
TextValidator |
containing(java.lang.String expectedToken)
This method verifies that the text on every page in effect contains all given arguments.
|
TextValidator |
containing(java.lang.String[] expectedTokens,
WhitespaceProcessing whitespaceProcessing)
This method verifies that the text on every page, which is selected by the test,
contains all given arguments.
|
TextValidator |
containing(java.lang.String expectedToken,
WhitespaceProcessing whitespaceProcessing)
This method verifies that the text on every page in effect contains all given arguments.
|
TextValidator |
endingWith(java.lang.String expectedEnd)
This method verifies that the text on every page in effect ends with the given parameter.
|
TextValidator |
hasContent()
Deprecated.
This method is too unspecific.
Use hasText(PagesToUse) instead.
|
TextValidator |
hasContent(PagesToUse pagesToUse)
Deprecated.
Use hasText(PagesToUse) instead.
The name of this method is not clear enough.
|
TextValidator |
hasText()
This method verifies that content is at least on one page of the pages in effect.
|
TextValidator |
hasText(PagesToUse pagesToUse)
Preparing validator for following methods.
|
TextValidator |
inClippingArea(ClippingArea clippingArea,
int pageHeight)
This method stores parameters to reduce a text validation
to a section of one or more pages of a PDF document.
|
TextValidator |
isEmpty()
This method verifies that the page or a region of a page has
no content.
|
TextValidator |
matchingComplete(java.lang.String expected)
This method verifies that the text on every page in effect is equals to
the expected value.
|
TextValidator |
matchingComplete(java.lang.String expected,
WhitespaceProcessing whitespaceProcessing)
This method verifies that the text on every page in effect is equals to the expected value.
|
TextValidator |
matchingRegex(java.lang.String regex)
This method verifies that the text on every page in effect matches the regular
expression given by the parameter.
|
TextValidator |
notContaining(java.lang.String... notExpectedTokens)
This method verifies that the text on every page in effect does not contain the
string given by the parameter.
|
TextValidator |
notContaining(java.lang.String notExpectedToken)
This method verifies that the text on every page in effect does not contain the
string given by the parameter.
|
TextValidator |
notContaining(java.lang.String[] notExpectedTokens,
WhitespaceProcessing whitespaceProcessing)
This method verifies that the text on every page in effect does not contain the
string given by the parameter.
|
TextValidator |
notContaining(java.lang.String notExpectedToken,
WhitespaceProcessing whitespaceProcessing)
This method verifies that the text on every page in effect does not contain the
string given by the parameter.
|
TextValidator |
notEndingWith(java.lang.String notExpectedEnd)
This method verifies that the text on every page in effect does not end with the given parameter.
|
TextValidator |
notMatchingRegex(java.lang.String regex)
This method verifies that the text on every page in effect does not match
the regular expression given by the parameter.
|
TextValidator |
notStartingWith(java.lang.String notExpectedStart)
This method verifies that the text on every page in effect does not start
with the given parameter.
|
protected void |
setFilter(com.pdfunit.adapter.itext.IRenderFilter filter)
This method sets a new filter for the current validator.
|
void |
setPagesToUse(PagesToUse pagesToUse) |
TextValidator |
startingWith(java.lang.String expectedStart)
This method verifies that the text on every page in effect starts with the given parameter.
|
public TextValidator(com.pdfunit.internal.spi.IDocument pdfDocument)
@Guarded public TextValidator hasText(PagesToUse pagesToUse)
@Deprecated @Guarded public TextValidator hasContent(PagesToUse pagesToUse)
@Guarded public TextValidator startingWith(java.lang.String expectedStart)
@Guarded public TextValidator containing(java.lang.String expectedToken)
@Guarded public TextValidator containing(java.lang.String... expectedTokens)
@Guarded public TextValidator containing(java.lang.String expectedToken, WhitespaceProcessing whitespaceProcessing)
@Guarded public TextValidator containing(java.lang.String[] expectedTokens, WhitespaceProcessing whitespaceProcessing)
@Guarded public TextValidator endingWith(java.lang.String expectedEnd)
@Guarded public TextValidator matchingComplete(java.lang.String expected)
@Guarded public TextValidator matchingComplete(java.lang.String expected, WhitespaceProcessing whitespaceProcessing)
WhitespaceProcessing
@Guarded public TextValidator matchingRegex(java.lang.String regex)
@Guarded public TextValidator notContaining(java.lang.String notExpectedToken)
@Guarded public TextValidator notContaining(java.lang.String... notExpectedTokens)
@Guarded public TextValidator notContaining(java.lang.String notExpectedToken, WhitespaceProcessing whitespaceProcessing)
@Guarded public TextValidator notContaining(java.lang.String[] notExpectedTokens, WhitespaceProcessing whitespaceProcessing)
@Guarded public TextValidator notStartingWith(java.lang.String notExpectedStart)
@Guarded public TextValidator notEndingWith(java.lang.String notExpectedEnd)
@Guarded public TextValidator notMatchingRegex(java.lang.String regex)
@Guarded public TextValidator inClippingArea(ClippingArea clippingArea, int pageHeight)
protected void setFilter(com.pdfunit.adapter.itext.IRenderFilter filter)
The method is used internally only.
public TextValidator hasText()
@Deprecated public TextValidator hasContent()
public TextValidator isEmpty()
Unittests should better use DocumentValidator.hasNoText().
@Guarded public void setPagesToUse(PagesToUse pagesToUse)
Copyright (C) PDFUnit.com. See here for license.