### Question:
StudyMeasurementTableModel extends AbstractTableModel { public int getRowCount() { int n = 0; for (StudyOutcomeMeasure<? extends Variable> var : d_study.getStudyOutcomeMeasures(d_type)) { n += var.getWhenTaken().size(); } return n; } StudyMeasurementTableModel(Study study, PresentationModelFactory pmf, Class<? extends Variable> type, boolean hasOverallColumn); @Override Class<?> getColumnClass(int columnIndex); int getColumnCount(); int getRowCount(); @Override boolean isCellEditable(int row, int col); @Override String getColumnName(int col); Object getValueAt(int rowIndex, int columnIndex);  }### Answer:
@Test public void testGetRowCount() { assertEquals(d_standardStudy.getEndpoints().size() * 2, d_model.getRowCount()); }
@Test public void testGetPopcharRowCount() { assertEquals(d_popcharStudy.getVariables(PopulationCharacteristic.class).size(), d_popcharTablemodel.getRowCount()); }