From 4f8ad8f0588564679cb8ccb9ae4592738810d800 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 3 Jan 2016 14:36:59 +0000 Subject: Add map as shorter alias for ImmutableMap.of --- .../java/org/zwobble/mammoth/tests/docx/RelationshipsXmlTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsXmlTests.java') diff --git a/src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsXmlTests.java b/src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsXmlTests.java index 1ba9ea8..19e74f3 100644 --- a/src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsXmlTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsXmlTests.java @@ -1,20 +1,20 @@ 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.docx.Relationships; import org.zwobble.mammoth.xml.XmlElement; import static org.junit.Assert.assertEquals; import static org.zwobble.mammoth.docx.RelationshipsXml.readRelationshipsXmlElement; +import static org.zwobble.mammoth.util.MammothMaps.map; import static org.zwobble.mammoth.xml.XmlNodes.element; public class RelationshipsXmlTests { @Test public void targetIsReadFromRelationshipElement() { XmlElement element = element("relationship:Relationships", ImmutableList.of( - element("relationships:Relationship", ImmutableMap.of( + element("relationships:Relationship", map( "Id", "rId8", "Type", "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", "Target", "http://example.com")))); -- cgit v1.2.3