diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-21 09:44:16 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-21 09:44:16 +0000 |
| commit | c1604e510cc831a00f6105df35c68a856f061b65 (patch) | |
| tree | 699e55b0d654ec464fe25c0b21964de3d9bbc780 /src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java | |
| parent | 9d5da9d5339055198aac8d0d41c3d33d97344ebd (diff) | |
Allow input streams to be read
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.java | 4 |
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( |
