RankProbabilityTableModel extends AbstractTableModel { public int getRowCount() { return d_summary.getTreatments().size(); } RankProbabilityTableModel(RankProbabilitySummary summary, boolean preferDescription);  RankProbabilityTableModel(RankProbabilitySummary summary); int getColumnCount(); int getRowCount(); @Override String getColumnName(int column); @Override Class<?> getColumnClass(int column); Object getValueAt(int rowIndex, int columnIndex);  }
@Test public void testRowCount() { assertEquals(3, d_model.getRowCount()); }