diff --git a/trellis-test/src/main/java/org/trellisldp/test/BaseCommonTests.java b/trellis-test/src/main/java/org/trellisldp/test/BaseCommonTests.java index 89a3e5412..a448b214a 100644 --- a/trellis-test/src/main/java/org/trellisldp/test/BaseCommonTests.java +++ b/trellis-test/src/main/java/org/trellisldp/test/BaseCommonTests.java @@ -26,6 +26,7 @@ import java.io.InputStream; import java.io.UncheckedIOException; import java.net.URISyntaxException; +import java.util.Collections; import java.util.List; import java.util.function.Predicate; @@ -52,8 +53,8 @@ class BaseCommonTests { private static String BASE_URL = null; private static Client CLIENT = null; - private static final IOService IO_SVC = new JenaIOService( - new NamespacesJsonContext(getResourcePath("/data/namespaces.json"))); + private final IOService IO_SVC = new JenaIOService( + new NamespacesJsonContext(getResourcePath("/data/namespaces.json")), null, Collections.emptyMap()); protected static final RDF rdf = new JenaRDF(); protected static void setUp() throws Exception { @@ -99,7 +100,7 @@ protected static List getLinks(final Response res) { return res.getStringHeaders().get(LINK).stream().map(Link::valueOf).collect(toList()); } - protected static String getResourcePath(final String path) { + protected String getResourcePath(final String path) { try { return new File(BaseCommonTests.class.getResource(path).toURI()).getAbsolutePath(); } catch (final URISyntaxException ex) { @@ -124,7 +125,7 @@ protected Predicate hasType(final IRI iri) { return link -> "type".equals(link.getRel()) && iri.getIRIString().equals(link.getUri().toString()); } - protected static Graph readEntityAsGraph(final Object entity, final RDFSyntax syntax) { + protected Graph readEntityAsGraph(final Object entity, final RDFSyntax syntax) { final Graph g = rdf.createGraph(); IO_SVC.read((InputStream) entity, getBaseUrl(), syntax).forEach(g::add); return g;