RankProbabilityTableModel extends AbstractTableModel { public int getColumnCount() { return d_summary.getTreatments().size() + 1; } 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 testColumnCount() { assertEquals(4, d_model.getColumnCount()); }