diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-01-03 14:36:59 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-01-03 14:36:59 +0000 |
| commit | 4f8ad8f0588564679cb8ccb9ae4592738810d800 (patch) | |
| tree | fa8d0d1c2115079e362e0218b5d530f1502138c4 /src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsXmlTests.java | |
| parent | 07685b4a361f8827728513f9d7360bd91dc1a246 (diff) | |
Add map as shorter alias for ImmutableMap.of
Diffstat (limited to 'src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsXmlTests.java')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsXmlTests.java | 4 |
1 files changed, 2 insertions, 2 deletions
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")))); |
