summaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-13 12:38:05 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-13 12:38:05 +0000
commit8d07fccc0787bb043125e2f8788e550c692a2579 (patch)
tree5e53a1f289e6f3bd569d5bdf5e5ff3ddc2c7ce1a /src/test/java/org
parent4ddf138fd09099819ab25481515495b294b9a325 (diff)
Read embedded style maps
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/zwobble/mammoth/tests/MammothTests.java8
1 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")),