DatabaseMetaDataResultSet extends AbstractUnsupportedDatabaseMetaDataResultSet { @Override public boolean next() throws SQLException { checkClosed(); if (databaseMetaDataObjectIterator.hasNext()) { currentDatabaseMetaDataObject = databaseMetaDataObjectIterator.next(); return true; } return false; } DatabaseMetaDataResultSet(final ResultSet resultSet, final Collection<ShardingSphereRule> rules); @Override boolean next(); @Override void close(); @Override boolean wasNull(); @Override BigDecimal getBigDecimal(final int columnIndex, final int scale); @Override BigDecimal getBigDecimal(final String columnLabel, final int scale); @Override BigDecimal getBigDecimal(final int columnIndex); @Override BigDecimal getBigDecimal(final String columnLabel); @Override String getString(final int columnIndex); @Override String getString(final String columnLabel); @Override String getNString(final int columnIndex); @Override String getNString(final String columnLabel); @Override boolean getBoolean(final int columnIndex); @Override boolean getBoolean(final String columnLabel); @Override byte getByte(final int columnIndex); @Override byte getByte(final String columnLabel); @Override short getShort(final int columnIndex); @Override short getShort(final String columnLabel); @Override int getInt(final int columnIndex); @Override int getInt(final String columnLabel); @Override long getLong(final int columnIndex); @Override long getLong(final String columnLabel); @Override float getFloat(final int columnIndex); @Override float getFloat(final String columnLabel); @Override double getDouble(final int columnIndex); @Override double getDouble(final String columnLabel); @Override byte[] getBytes(final int columnIndex); @Override byte[] getBytes(final String columnLabel); @Override Date getDate(final int columnIndex); @Override Date getDate(final String columnLabel); @Override Time getTime(final int columnIndex); @Override Time getTime(final String columnLabel); @Override Timestamp getTimestamp(final int columnIndex); @Override Timestamp getTimestamp(final String columnLabel); @Override URL getURL(final int columnIndex); @Override URL getURL(final String columnLabel); @Override ResultSetMetaData getMetaData(); @Override Object getObject(final int columnIndex); @Override Object getObject(final String columnLabel); @Override int findColumn(final String columnLabel); @Override int getType(); @Override int getConcurrency(); @Override void setFetchDirection(final int direction); @Override int getFetchDirection(); @Override int getFetchSize(); @Override void setFetchSize(final int rows); @Override boolean isClosed();  }
@Test public void assertNext() throws SQLException { assertTrue(databaseMetaDataResultSet.next()); assertFalse(databaseMetaDataResultSet.next()); }