aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-01-03 10:59:27 +0000
committerMichael Williamson <mike@zwobble.org>2016-01-03 10:59:27 +0000
commitc8ff305d5cbbbd472b6dc04c40f25c0190ff3a04 (patch)
tree39560a49a803ce99bb223bcafe3b946e34fb0350 /src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java
parentd5da134fe3107acc53987ed6ca89cefd72e0397e (diff)
Rename non-static readers
Diffstat (limited to 'src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java')
-rw-r--r--src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java b/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java
index cc00d3c..90bf51a 100644
--- a/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java
+++ b/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java
@@ -9,7 +9,7 @@ import com.natpryce.makeiteasy.PropertyLookup;
import org.hamcrest.Matcher;
import org.junit.Test;
import org.zwobble.mammoth.documents.*;
-import org.zwobble.mammoth.docx.BodyXml;
+import org.zwobble.mammoth.docx.BodyXmlReader;
import org.zwobble.mammoth.docx.Styles;
import org.zwobble.mammoth.tests.DeepReflectionMatcher;
import org.zwobble.mammoth.xml.XmlElement;
@@ -29,12 +29,12 @@ import static org.zwobble.mammoth.tests.DeepReflectionMatcher.deepEquals;
import static org.zwobble.mammoth.xml.XmlNodes.element;
public class BodyXmlTests {
- private static final Property<BodyXml, Styles> STYLES = newProperty();
+ private static final Property<BodyXmlReader, Styles> STYLES = newProperty();
- private static final Instantiator<BodyXml> bodyReader = new Instantiator<BodyXml>() {
+ private static final Instantiator<BodyXmlReader> bodyReader = new Instantiator<BodyXmlReader>() {
@Override
- public BodyXml instantiate(PropertyLookup<BodyXml> propertyLookup) {
- return new BodyXml(
+ public BodyXmlReader instantiate(PropertyLookup<BodyXmlReader> propertyLookup) {
+ return new BodyXmlReader(
propertyLookup.valueOf(STYLES, new Styles(ImmutableMap.of(), ImmutableMap.of())));
}
};
@@ -94,7 +94,7 @@ public class BodyXmlTests {
hasStyle(Optional.of(style)));
}
- private static DocumentElement read(Maker<BodyXml> reader, XmlElement element) {
+ private static DocumentElement read(Maker<BodyXmlReader> reader, XmlElement element) {
return reader.make().readElement(element).get(0);
}