diff options
| author | Michael Williamson <mike@zwobble.org> | 2018-01-23 20:51:30 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2018-01-23 20:51:30 +0000 |
| commit | c3c2151b4b0fc9b3226a5ec66e0f7952290f3d97 (patch) | |
| tree | d5b216ff39695e77ae77dc4ae14a5dfa8f0ef0c5 /src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsTests.java | |
| parent | d88693d7be4d4d439e9ba9c338fc53e39be64ef6 (diff) | |
Pass list of Relationship instances into Relationships
Diffstat (limited to 'src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsTests.java')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsTests.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsTests.java b/src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsTests.java index c860ba1..3c32852 100644 --- a/src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsTests.java @@ -4,16 +4,15 @@ import org.junit.jupiter.api.Test; import org.zwobble.mammoth.internal.docx.Relationships; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.zwobble.mammoth.internal.util.Maps.map; import static org.zwobble.mammoth.tests.util.MammothAsserts.assertThrows; public class RelationshipsTests { @Test public void exceptionIsThrownIfRelationshipCannotBeFound() { - Relationships relationships = new Relationships(map()); + Relationships relationships = Relationships.EMPTY; RuntimeException exception = assertThrows( RuntimeException.class, - () -> relationships.findRelationshipById("rId5")); + () -> relationships.findTargetByRelationshipId("rId5")); assertEquals("Could not find relationship 'rId5'", exception.getMessage()); } } |
