Neo4jStatement implements Statement, Loggable { @Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return org.neo4j.jdbc.Wrapper.isWrapperFor(iface, this.getClass()); } protected  Neo4jStatement(Neo4jConnection connection); @Override Neo4jConnection getConnection(); @Override int getUpdateCount(); @Override ResultSet getResultSet(); @Override int getMaxRows(); @Override void setMaxRows(int max); @Override boolean isClosed(); @Override void close(); @Override T unwrap(Class<T> iface); @Override boolean isWrapperFor(Class<?> iface); @Override void setFetchSize(int rows); @Override boolean getMoreResults(); @Override SQLWarning getWarnings(); @Override void clearWarnings(); @Override int getQueryTimeout(); @Override void setQueryTimeout(int seconds); @Override void addBatch(String sql); @Override void clearBatch(); @Override int getResultSetConcurrency(); @Override int getResultSetType(); @Override int getResultSetHoldability(); @Override boolean execute(String sql, int autoGeneratedKeys); @Override boolean execute(String sql, int[] columnIndexes); @Override boolean execute(String sql, String[] columnNames); @Override int executeUpdate(String sql, int autoGeneratedKeys); @Override int executeUpdate(String sql, int[] columnIndexes); @Override int executeUpdate(String sql, String[] columnNames); @Override int getMaxFieldSize(); @Override void setMaxFieldSize(int max); @Override void setEscapeProcessing(boolean enable); @Override void setCursorName(String name); @Override void setFetchDirection(int direction); @Override int getFetchDirection(); @Override int getFetchSize(); @Override boolean getMoreResults(int current); @Override ResultSet getGeneratedKeys(); @Override void cancel(); @Override void setPoolable(boolean poolable); @Override boolean isPoolable(); @Override int[] executeBatch(); @Override void closeOnCompletion(); @Override boolean isCloseOnCompletion(); @Override boolean hasDebug(); @Override void setDebug(boolean debug); @Override void setDebugLevel(int level); @Override int getDebugLevel();  }
@Test public void isWrapperForShouldReturnTrue() throws SQLException { Neo4jStatement statement = mock(Neo4jStatement.class, Mockito.CALLS_REAL_METHODS); assertTrue(statement.isWrapperFor(Neo4jStatement.class)); assertTrue(statement.isWrapperFor(java.sql.Statement.class)); assertTrue(statement.isWrapperFor(java.sql.Wrapper.class)); assertTrue(statement.isWrapperFor(AutoCloseable.class)); }
@Test public void isWrapperForShouldReturnFalse() throws SQLException { Neo4jStatement statement = mock(Neo4jStatement.class, Mockito.CALLS_REAL_METHODS); assertFalse(statement.isWrapperFor(Neo4jParameterMetaData.class)); assertFalse(statement.isWrapperFor(java.sql.Driver.class)); assertFalse(statement.isWrapperFor(javax.sql.DataSource.class)); assertFalse(statement.isWrapperFor(java.sql.ResultSet.class)); }