SnapshotTableModel extends AbstractTableModel { @Override public Object getValueAt(int rowIndex, int columnIndex) { return objects[rowIndex][columnIndex]; } 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 testGetValueAt() { content[0][1] = "Schneck"; content[1][1] = "bird"; assertEquals("Schneck", tableModel.getValueAt(0, 1)); assertEquals("bird", tableModel.getValueAt(1, 1)); }