DummyInferredStorageConnector implements InferredStorageConnector { @Override public void executeUpdate(String query, cz.cvut.kbss.ontodriver.Statement.StatementOntology target) throws JenaDriverException { connector.executeUpdate(query, target); } 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 executeUpdateQueryForwardsCallToWrappedConnector() throws Exception { final String query = "INSERT DATA { _:b1 a <" + TYPE_ONE + "> . }"; connector.executeUpdate(query, Statement.StatementOntology.TRANSACTIONAL); verify(wrappedConnector).executeUpdate(query, Statement.StatementOntology.TRANSACTIONAL); }