aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/mammoth/tests/docx/NotesXmlReaderTests.java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-01-03 14:36:59 +0000
committerMichael Williamson <mike@zwobble.org>2016-01-03 14:36:59 +0000
commit4f8ad8f0588564679cb8ccb9ae4592738810d800 (patch)
treefa8d0d1c2115079e362e0218b5d530f1502138c4 /src/test/java/org/zwobble/mammoth/tests/docx/NotesXmlReaderTests.java
parent07685b4a361f8827728513f9d7360bd91dc1a246 (diff)
Add map as shorter alias for ImmutableMap.of
Diffstat (limited to 'src/test/java/org/zwobble/mammoth/tests/docx/NotesXmlReaderTests.java')
-rw-r--r--src/test/java/org/zwobble/mammoth/tests/docx/NotesXmlReaderTests.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/docx/NotesXmlReaderTests.java b/src/test/java/org/zwobble/mammoth/tests/docx/NotesXmlReaderTests.java
index 16d14ad..58edf54 100644
--- a/src/test/java/org/zwobble/mammoth/tests/docx/NotesXmlReaderTests.java
+++ b/src/test/java/org/zwobble/mammoth/tests/docx/NotesXmlReaderTests.java
@@ -1,7 +1,6 @@
package org.zwobble.mammoth.tests.docx;
import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
import org.junit.Test;
import org.zwobble.mammoth.documents.Note;
import org.zwobble.mammoth.docx.BodyXmlReader;
@@ -15,6 +14,7 @@ import static com.natpryce.makeiteasy.MakeItEasy.make;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.zwobble.mammoth.tests.DeepReflectionMatcher.deepEquals;
import static org.zwobble.mammoth.tests.documents.DocumentElementMakers.PARAGRAPH;
+import static org.zwobble.mammoth.util.MammothMaps.map;
import static org.zwobble.mammoth.xml.XmlNodes.element;
public class NotesXmlReaderTests {
@@ -23,7 +23,7 @@ public class NotesXmlReaderTests {
@Test
public void idAndBodyOfFootnoteAreRead() {
XmlElement element = element("w:footnotes", ImmutableList.of(
- element("w:footnote", ImmutableMap.of("w:id", "1"), ImmutableList.of(
+ element("w:footnote", map("w:id", "1"), ImmutableList.of(
element("w:p")))));
NotesXmlReader reader = new NotesXmlReader(bodyReader, "footnote");
@@ -46,7 +46,7 @@ public class NotesXmlReaderTests {
private void assertFootnoteTypeIsIgnored(String noteType) {
XmlElement element = element("w:footnotes", ImmutableList.of(
- element("w:footnote", ImmutableMap.of("w:id", "1", "w:type", noteType), ImmutableList.of(
+ element("w:footnote", map("w:id", "1", "w:type", noteType), ImmutableList.of(
element("w:p")))));
NotesXmlReader reader = new NotesXmlReader(bodyReader, "footnote");