Modifier | Constructor and Description |
---|---|
protected |
BookmarkDetailsValidator(com.pdfunit.internal.spi.IDocument testDocument,
BookmarkValidator backReference) |
Modifier and Type | Method and Description |
---|---|
BookmarkValidator |
withLabel(java.lang.String expectedLabel)
Validating an existing bookmark label.
|
BookmarkValidator |
withLabelLinkingToPage(java.lang.String expectedLabel,
int toPage)
This method verifies that a bookmark label (given by the first parameter) exists,
which points to the page (given by the second parameter).
|
BookmarkValidator |
withLinkToName(java.lang.String expectedName)
This method uses xpath internally to look for bookmarks with a link
to the given name.
|
BookmarkValidator |
withLinkToPage(int toPage)
The method verifies that a bookmark exists, which points to the page, given
by the parameter.
|
BookmarkValidator |
withLinkToURI(java.lang.String expectedURI)
This method uses xpath internally to look for bookmarks with
the given uri.
|
BookmarkValidator |
withoutDeadLink()
This method verifies that no bookmark points to nothing (dead link).
|
protected BookmarkDetailsValidator(com.pdfunit.internal.spi.IDocument testDocument, BookmarkValidator backReference)
@Guarded public BookmarkValidator withLabel(java.lang.String expectedLabel)
public BookmarkValidator withoutDeadLink()
@Guarded public BookmarkValidator withLinkToPage(int toPage)
@Guarded public BookmarkValidator withLabelLinkingToPage(java.lang.String expectedLabel, int toPage)
@Guarded public BookmarkValidator withLinkToURI(java.lang.String expectedURI)
@Guarded public BookmarkValidator withLinkToName(java.lang.String expectedName)
Copyright (C) PDFUnit.com. See here for license.