Neo4jResultSetMetaData implements java.sql.ResultSetMetaData { @Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return Wrapper.isWrapperFor(iface, this.getClass()); } protected  Neo4jResultSetMetaData(List<String> keys); @Override int getColumnCount(); @Override String getColumnLabel(int column); @Override String getColumnName(int column); @Override String getCatalogName(int column); @Override int getColumnDisplaySize(int column); @Override boolean isAutoIncrement(int column); @Override boolean isSearchable(int column); @Override boolean isCurrency(int column); @Override int isNullable(int column); @Override boolean isSigned(int column); @Override int getPrecision(int column); @Override int getScale(int column); @Override T unwrap(Class<T> iface); @Override boolean isWrapperFor(Class<?> iface); @Override int getColumnType(int column); @Override String getColumnTypeName(int column); @Override String getColumnClassName(int column); @Override String getTableName(int column); @Override String getSchemaName(int column); @Override boolean isCaseSensitive(int column); @Override boolean isReadOnly(int column); @Override boolean isWritable(int column); @Override boolean isDefinitelyWritable(int column);  }
@Test public void isWrapperForShouldReturnFalse() throws SQLException { Neo4jResultSetMetaData resultSetMetaData = mock(Neo4jResultSetMetaData.class, Mockito.CALLS_REAL_METHODS); assertFalse(resultSetMetaData.isWrapperFor(Neo4jStatement.class)); assertFalse(resultSetMetaData.isWrapperFor(java.sql.Driver.class)); assertFalse(resultSetMetaData.isWrapperFor(Neo4jResultSet.class)); assertFalse(resultSetMetaData.isWrapperFor(java.sql.ResultSet.class)); }
@Test public void isWrapperForShouldReturnTrue() throws SQLException { Neo4jResultSetMetaData resultSetMetaData = mock(Neo4jResultSetMetaData.class, Mockito.CALLS_REAL_METHODS); assertTrue(resultSetMetaData.isWrapperFor(Neo4jResultSetMetaData.class)); assertTrue(resultSetMetaData.isWrapperFor(java.sql.ResultSetMetaData.class)); assertTrue(resultSetMetaData.isWrapperFor(java.sql.Wrapper.class)); }