aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-02-13 18:41:35 +0000
committerMichael Williamson <mike@zwobble.org>2016-02-13 18:41:35 +0000
commit1425e365a53b4a2ff3ecd12c754da453b7aa026f (patch)
treef4e649258c590944e09513cbd08edfcbafa79b52 /src/test/java/org/zwobble/mammoth/tests/MammothTests.java
parentcf6808f01f8aff295548f2de62b86498e4996141 (diff)
Warn when referenced style is not defined
Diffstat (limited to 'src/test/java/org/zwobble/mammoth/tests/MammothTests.java')
-rw-r--r--src/test/java/org/zwobble/mammoth/tests/MammothTests.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
index 2096cbd..e280d11 100644
--- a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
+++ b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
@@ -6,6 +6,7 @@ import org.zwobble.mammoth.results.Result;
import java.io.File;
+import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.zwobble.mammoth.results.Result.success;
import static org.zwobble.mammoth.tests.DeepReflectionMatcher.deepEquals;
@@ -14,8 +15,8 @@ public class MammothTests {
@Test
public void emptyParagraphsAreIgnoredByDefault() {
assertThat(
- convertToHtml("empty.docx"),
- deepEquals(success("")));
+ convertToHtml("empty.docx").getValue(),
+ is(""));
}
@Test