DummyInferredStorageConnector implements InferredStorageConnector { @Override public AbstractResultSet executeSelectQuery(Query query, cz.cvut.kbss.ontodriver.Statement.StatementOntology target) throws JenaDriverException { return connector.executeSelectQuery(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 executeSelectQueryForwardsCallToWrappedConnector() throws Exception { final Query query = QueryFactory.create("SELECT * WHERE { ?x ?y ?z . }"); final AbstractResultSet resultSet = connector.executeSelectQuery(query, Statement.StatementOntology.TRANSACTIONAL); assertNotNull(resultSet); verify(wrappedConnector).executeSelectQuery(query, Statement.StatementOntology.TRANSACTIONAL); }