|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentAssertion
This interface provides the user the different content assertions.
Method Summary | |
---|---|
void |
assertContentContainsText(String text,
TextSearchType type)
This assert method checks if the supposed parameters are contained in the pdf document. |
void |
assertContentContainsTextMultipleTimes(String text,
TextSearchType type)
This assert method checks if the supposed parameters are contained in the document. |
void |
assertContentContainsTextOnPage(String text,
int page,
TextSearchType type)
This assert method checks if the supposed parameters are contained in the document. |
void |
assertContentDoesNotContainText(String text,
TextSearchType type)
This assert method checks if the supposed parameters are not contained in the pdf document. |
void |
assertContentDoesNotContainTextMultipleTimes(String text,
TextSearchType type)
This assert method checks if the supposed parameters are contained in the document. |
void |
assertContentDoesNotContainTextOnPage(String text,
int page,
TextSearchType type)
This assert method checks if the supposed parameters are not contained in the document. |
Method Detail |
---|
void assertContentContainsText(String text, TextSearchType type)
text
- The string or regular expression (constructs a regular
expression matcher from a String by compiling it using a new
instance of RECompiler) to search for in the document. Be
carefull regex are greedy.type
- The kind of search. The type is related to the pages of the
document.void assertContentContainsTextMultipleTimes(String text, TextSearchType type)
text
- The string or regular expression to search for in the document.
Be carefull regex are greedy.type
- The kind of search. The type is related to the pages of the
document.void assertContentContainsTextOnPage(String text, int page, TextSearchType type)
text
- The string or regular expression to search for in the document.
Be carefull regex are greedy.page
- The page of the document which should be passed trough. The page
count equals to a real document its 1-based.type
- The kind of search. The type is related to the pages of the
document.void assertContentDoesNotContainText(String text, TextSearchType type)
text
- The string or regular expression (constructs a regular
expression matcher from a String by compiling it using a new
instance of RECompiler) to search for in the document. Be
carefull regex are greedy.type
- The kind of search. The type is related to the pages of the
document.void assertContentDoesNotContainTextMultipleTimes(String text, TextSearchType type)
text
- The string or regular expression to search for in the document.
Be carefull regex are greedy.type
- The kind of search. The type is related to the pages of the
document.void assertContentDoesNotContainTextOnPage(String text, int page, TextSearchType type)
text
- The string or regular expression to search for in the document.
Be carefull regex are greedy.page
- The page of the document which should be passed trough. The page
count equals to a real document its 1-based.type
- The kind of search. The type is related to the pages of the
document.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |