Spreadsheet extends AbstractTableModel { @Override public int getRowCount() { return rows; } Spreadsheet(int rows, int columns); @Override int getRowCount(); @Override int getColumnCount(); @Override // Override this method so that all the Jtable cells become editable: boolean isCellEditable(int rowIndex, int columnIndex); @Override // Return the value inside the selected Cell (depending on its type): Object getValueAt(int row, int column); @Override void setValueAt(Object value, int row, int column); Cell getCell(int row, int column); void useFunction(Cell[] input_cells, String function, Cell output_cell); void createChart();  }
@Test public void testGetRowCount() { assertEquals(50, spreadsheet.getRowCount()); }