diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-13 21:25:42 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-13 21:25:42 +0000 |
| commit | ed074b78dbb2a0d15ccb985b1e9531aace0fd4ea (patch) | |
| tree | d8617df25bdcc3627392b984b2f17d7a7874484d /src/test | |
| parent | 6efa9397505e42b318879230d3b10a00f1ff2761 (diff) | |
Read footnote references
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java b/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java index d78faa1..6a21813 100644 --- a/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java @@ -21,6 +21,7 @@ import static java.util.Arrays.asList; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.hasProperty; +import static org.zwobble.mammoth.documents.NoteReference.footnoteReference; import static org.zwobble.mammoth.results.Warning.warning; import static org.zwobble.mammoth.tests.DeepReflectionMatcher.deepEquals; import static org.zwobble.mammoth.tests.documents.DocumentElementMakers.*; @@ -336,6 +337,14 @@ public class BodyXmlTests { } @Test + public void footnoteReferenceHasIdRead() { + XmlElement element = element("w:footnoteReference", map("w:id", "4")); + assertThat( + readSuccess(a(bodyReader), element), + deepEquals(footnoteReference("4"))); + } + + @Test public void appropriateElementsHaveTheirChildrenReadNormally() { assertChildrenAreReadNormally("w:ins"); assertChildrenAreReadNormally("w:smartTag"); |
