### Question:
BRATTableModel extends AbstractTableModel { @Override public Class<?> getColumnClass(int columnIndex) { switch(columnIndex) { case COLUMN_BR: return String.class; case COLUMN_CRITERIA: return Variable.class; case COLUMN_OUTCOME_TYPE: return VariableType.class; case COLUMN_BASELINE: case COLUMN_SUBJECT: return Distribution.class; case COLUMN_DIFFERENCE: return BRATDifference.class; case COLUMN_FOREST: return BRATForest.class; default: return null; } } BRATTableModel(AnalysisType bean, Alternative subject); @Override int getColumnCount(); @Override int getRowCount(); @Override Object getValueAt(int rowIndex, int columnIndex); @Override String getColumnName(int column); @Override Class<?> getColumnClass(int columnIndex); Alternative getBaseline(); Alternative getSubject(); static final int COLUMN_BR; static final int COLUMN_CRITERIA; static final int COLUMN_OUTCOME_TYPE; static final int COLUMN_BASELINE; static final int COLUMN_SUBJECT; static final int COLUMN_DIFFERENCE; static final int COLUMN_FOREST; static final int OFFSET_LOGAXIS; static final int OFFSET_LINAXIS; }### Answer:
@Test public void testColumnClasses() { assertEquals(String.class, d_btmMeta.getColumnClass(COLUMN_BR)); assertEquals(Variable.class, d_btmMeta.getColumnClass(COLUMN_CRITERIA)); assertEquals(VariableType.class, d_btmMeta.getColumnClass(COLUMN_OUTCOME_TYPE)); assertEquals(Distribution.class, d_btmMeta.getColumnClass(COLUMN_BASELINE)); assertEquals(Distribution.class, d_btmMeta.getColumnClass(COLUMN_SUBJECT)); assertEquals(Distribution.class, d_btmStudy.getColumnClass(COLUMN_BASELINE)); assertEquals(Distribution.class, d_btmStudy.getColumnClass(COLUMN_SUBJECT)); assertEquals(BRATDifference.class, d_btmMeta.getColumnClass(COLUMN_DIFFERENCE)); }