diff options
Diffstat (limited to 'src/test/java/org/zwobble/mammoth/tests/docx/DocumentMatchers.java')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/docx/DocumentMatchers.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/docx/DocumentMatchers.java b/src/test/java/org/zwobble/mammoth/tests/docx/DocumentMatchers.java index 8ecb902..d0a1fe6 100644 --- a/src/test/java/org/zwobble/mammoth/tests/docx/DocumentMatchers.java +++ b/src/test/java/org/zwobble/mammoth/tests/docx/DocumentMatchers.java @@ -90,4 +90,20 @@ public class DocumentMatchers { static Matcher<Hyperlink> hasHref(String href) { return hasProperty("href", equalTo(Optional.of(href))); } + + static Matcher<Hyperlink> hasBlankHref() { + return hasProperty("href", equalTo(Optional.empty())); + } + + static Matcher<Hyperlink> hasAnchor(String anchor) { + return hasProperty("anchor", equalTo(Optional.of(anchor))); + } + + static Matcher<Hyperlink> hasBlankAnchor() { + return hasProperty("anchor", equalTo(Optional.empty())); + } + + static Matcher<Hyperlink> hasTargetFrame(String targetFrame) { + return hasProperty("targetFrame", equalTo(Optional.of(targetFrame))); + } } |
