From 1c320474b93de8c90bf903f6a748e83a9aa65706 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 19 Nov 2016 20:17:38 +0000 Subject: Allow embedded style maps to be disabled --- src/test/java/org/zwobble/mammoth/tests/MammothTests.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/test/java/org') diff --git a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java index bafd857..d7a2b66 100644 --- a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java @@ -251,6 +251,14 @@ public class MammothTests { ); } + @Test + public void embeddedStyleMapsCanBeDisabled() throws IOException { + assertThat( + convertToHtml("embedded-style-map.docx", options -> options.disableEmbeddedStyleMap()), + isSuccess("

Walking on imported air

") + ); + } + @Test public void embeddedStyleMapCanBeWrittenAndThenRead() throws IOException { InMemoryArchive archive = InMemoryArchive.fromStream(new FileInputStream(TestData.file("single-paragraph.docx"))); -- cgit v1.2.3