DummyInferredStorageConnector implements InferredStorageConnector { @Override public Collection<Statement> findWithInference(Resource subject, Property property, RDFNode value, String context) { return connector.find(subject, property, value, context); } DummyInferredStorageConnector(StorageConnector connector); @Override Collection<Statement> findWithInference(Resource subject, Property property, RDFNode value, String context); @Override boolean containsWithInference(Resource subject, Property property, RDFNode value, String context); @Override boolean isConsistent(String context); @Override AbstractResultSet executeSelectQuery(Query query,
                                                cz.cvut.kbss.ontodriver.Statement.StatementOntology target); @Override AbstractResultSet executeAskQuery(Query query,
                                             cz.cvut.kbss.ontodriver.Statement.StatementOntology target); @Override void executeUpdate(String query, cz.cvut.kbss.ontodriver.Statement.StatementOntology target);  }
@Test public void findWithInferenceByDefaultUsesRegularFind() { assertEquals(wrappedConnector.find(RESOURCE, RDF.type, null, null), connector.findWithInference(RESOURCE, RDF.type, null, null)); }
@Test public void findWithInferenceInContextByDefaultUsesRegularFindInContext() { assertEquals(wrappedConnector.find(RESOURCE, RDF.type, null, NAMED_GRAPH), connector.findWithInference(RESOURCE, RDF.type, null, NAMED_GRAPH)); }