Row extends DataAccessor { @Override public int size() { return getSource().getColumnCount(); } Row(DataSource source, int row); @Override Comparable<?> get(int col); @Override int size(); boolean isColumnNumeric(int columnIndex);  }
@Test public void testCreation() { Row row1 = new Row(table, 0); assertEquals(table, row1.getSource()); assertEquals(0, row1.getIndex()); assertEquals(table.getColumnCount(), row1.size()); Row row2 = new Row(table, 1); assertEquals(table, row2.getSource()); assertEquals(1, row2.getIndex()); assertEquals(table.getColumnCount(), row2.size()); }