diff options
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/MammothTests.java | 8 | ||||
| -rw-r--r-- | src/test/resources/test-data/embedded-style-map.docx | bin | 0 -> 49709 bytes |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java index fff4cb3..665e00a 100644 --- a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java @@ -227,6 +227,14 @@ public class MammothTests { } @Test + public void embeddedStyleMapIsUsedIfPresent() throws IOException { + assertThat( + convertToHtml("embedded-style-map.docx"), + isSuccess("<h1>Walking on imported air</h1>") + ); + } + + @Test public void canExtractRawTextFromFile() throws IOException { assertThat( new DocumentConverter().extractRawText(TestData.file("simple-list.docx")), diff --git a/src/test/resources/test-data/embedded-style-map.docx b/src/test/resources/test-data/embedded-style-map.docx Binary files differnew file mode 100644 index 0000000..bb0a5e2 --- /dev/null +++ b/src/test/resources/test-data/embedded-style-map.docx |
