aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java')
-rw-r--r--src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java b/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java
index 2c1d505..8b31452 100644
--- a/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java
+++ b/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java
@@ -437,7 +437,7 @@ public class BodyXmlTests {
Relationships relationships = new Relationships(map(
"rId5", new Relationship("media/hat.png")));
String imageBytes = "Not an image at all!";
- DocxFile file = new InMemoryDocxFile(map("word/media/hat.png", imageBytes));
+ DocxFile file = InMemoryDocxFile.fromStrings(map("word/media/hat.png", imageBytes));
Image image = (Image) readSuccess(
a(bodyReader, with(RELATIONSHIPS, relationships), with(DOCX_FILE, file)),
@@ -465,7 +465,7 @@ public class BodyXmlTests {
XmlElement element = inlineImageXml(embeddedBlipXml("rId5"), "");
Relationships relationships = new Relationships(map(
"rId5", new Relationship("media/hat.emf")));
- DocxFile file = new InMemoryDocxFile(map("word/media/hat.emf", "Not an image at all!"));
+ DocxFile file = InMemoryDocxFile.fromStrings(map("word/media/hat.emf", "Not an image at all!"));
ContentTypes contentTypes = new ContentTypes(map("emf", "image/x-emf"), map());
Result<?> result = read(