SnapshotTableModel extends AbstractTableModel { @Override public int getRowCount() { return objects.length; } SnapshotTableModel(Object[][] objects); @Override int getRowCount(); @Override int getColumnCount(); @Override String getColumnName(int column); @Override Class<?> getColumnClass(int columnIndex); @Override Object getValueAt(int rowIndex, int columnIndex);  }
@Test public void testRowCount() { assertEquals(2, tableModel.getRowCount()); }