aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/mammoth/tests/docx/DocumentXmlTests.java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-08-28 22:03:18 +0100
committerMichael Williamson <mike@zwobble.org>2016-08-28 22:03:18 +0100
commit9db49ccb50b1d667caf80f5b09087af88f817b60 (patch)
treee82112a7e546bcf733adad3551b0018e092e257d /src/test/java/org/zwobble/mammoth/tests/docx/DocumentXmlTests.java
parentdb23f095a273ab3715083122b21e446f8d0715dd (diff)
Remove usage of make it easy for building body readers
Diffstat (limited to 'src/test/java/org/zwobble/mammoth/tests/docx/DocumentXmlTests.java')
-rw-r--r--src/test/java/org/zwobble/mammoth/tests/docx/DocumentXmlTests.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/docx/DocumentXmlTests.java b/src/test/java/org/zwobble/mammoth/tests/docx/DocumentXmlTests.java
index 23d0f05..b628a99 100644
--- a/src/test/java/org/zwobble/mammoth/tests/docx/DocumentXmlTests.java
+++ b/src/test/java/org/zwobble/mammoth/tests/docx/DocumentXmlTests.java
@@ -10,8 +10,6 @@ import org.zwobble.mammoth.internal.results.InternalResult;
import org.zwobble.mammoth.internal.xml.XmlElement;
import org.zwobble.mammoth.internal.xml.XmlNodes;
-import static com.natpryce.makeiteasy.MakeItEasy.a;
-import static com.natpryce.makeiteasy.MakeItEasy.make;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.zwobble.mammoth.internal.util.Lists.list;
import static org.zwobble.mammoth.internal.xml.XmlNodes.element;
@@ -31,7 +29,7 @@ public class DocumentXmlTests {
element("w:t", list(
XmlNodes.text("Hello!")))))))))));
- DocumentXmlReader reader = new DocumentXmlReader(make(a(bodyReader)), Notes.EMPTY);
+ DocumentXmlReader reader = new DocumentXmlReader(bodyReader(), Notes.EMPTY);
InternalResult<Document> document = reader.readElement(documentElement);
assertThat(
@@ -45,7 +43,7 @@ public class DocumentXmlTests {
public void notesOfDocumentAreIncludedInDocument() {
Note note = new Note(NoteType.FOOTNOTE, "4", list(paragraphWithText("Hello")));
Notes notes = new Notes(list(note));
- DocumentXmlReader reader = new DocumentXmlReader(make(a(bodyReader)), notes);
+ DocumentXmlReader reader = new DocumentXmlReader(bodyReader(), notes);
XmlElement documentElement = element("w:document", list(element("w:body")));
InternalResult<Document> document = reader.readElement(documentElement);