aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-02-21 08:51:16 +0000
committerMichael Williamson <mike@zwobble.org>2016-02-21 08:51:16 +0000
commitf0159a9c51a92adcef38307c4e173a3de51bc373 (patch)
treefb3d821ac75d1279e3d8c8a8e17cc2912c766bb4 /src/test/java
parent9a7094b9df826a856cb73e01203aedfec30e306f (diff)
Add end-to-end test for text boxes
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/zwobble/mammoth/tests/MammothTests.java7
1 files changed, 7 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 a13e7ef..c165cfd 100644
--- a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
+++ b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
@@ -107,6 +107,13 @@ public class MammothTests {
}
@Test
+ public void textBoxesAreRead() {
+ assertThat(
+ convertToHtml("text-box.docx"),
+ deepEquals(success("<p>Datum plane</p>")));
+ }
+
+ @Test
public void canExtractRawText() {
assertThat(
Mammoth.extractRawText(TestData.file("simple-list.docx")),