diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-05-30 11:26:21 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-05-30 11:26:21 +0100 |
| commit | 275ff587231c8a74910a8f63595a7a23481d713f (patch) | |
| tree | 8aa109568981a23bfcccfadb7388a402f4203c9f /src/test/java/org/zwobble/mammoth/tests/docx/DocumentMatchers.java | |
| parent | 33c342c9c5b102ec5cb171cdfd72ac3722631d15 (diff) | |
Read target frame on hyperlinks
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))); + } } |
