aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/mammoth/tests/docx/RelationshipsTests.java
diff options
context:
space:
mode:
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.java5
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());
}
}