DummyInferredStorageConnector implements InferredStorageConnector { @Override public boolean containsWithInference(Resource subject, Property property, RDFNode value, String context) { return connector.contains(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 containsWithInferenceByDefaultUsesRegularContains() { assertEquals(wrappedConnector.contains(RESOURCE, RDF.type, createResource(TYPE_ONE), null), connector.containsWithInference(RESOURCE, RDF.type, createResource(TYPE_ONE), null)); }
@Test public void containsWithInferenceInContextByDefaultUsesRegularContainsInContext() { assertEquals(wrappedConnector.contains(RESOURCE, RDF.type, createResource(TYPE_TWO), NAMED_GRAPH), connector.containsWithInference(RESOURCE, RDF.type, createResource(TYPE_TWO), NAMED_GRAPH)); }