Github user ansell commented on a diff in the pull request:
https://github.com/apache/incubator-commonsrdf/pull/25#discussion_r85436062
--- Diff:
rdf4j/src/test/java/org/apache/commons/rdf/rdf4j/NativeStoreGraphTest.java ---
@@ -49,17 +51,23 @@
*/
public class NativeStoreGraphTest extends AbstractGraphTest {
- public final class NativeStoreFactory implements RDFTermFactory {
+ public final class NativeStoreRDF implements RDF {
- RDF4JFactory rdf4jFactory = new
RDF4JFactory(getRepository().getValueFactory());
+ RDF4J rdf4jFactory = new
RDF4J(getRepository().getValueFactory());
@Override
public RDF4JGraph createGraph() {
// We re-use the repository connection, but use a
different context every time
Set<RDF4JBlankNode> context =
Collections.singleton(rdf4jFactory.createBlankNode());
return rdf4jFactory.asGraph(getRepository(), context);
}
-
+ @Override
+ public Dataset createDataset() {
+ throw new UnsupportedOperationException("Can't create
more than one Dataset in this test");
--- End diff --
Is it possible to create a new Repository instance for each call to this
and put them on a shutdown queue to execute in the @After method so they are
all cleaned up.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---