LogDataTableModel extends AbstractTableModel implements LogDataCollector, MarkableTableModel, NotableTableModel { public LogData getLogData(int row) { if (row < 0 || row >= logDataStore.getCount()) { return EMPTY_LOG_DATA; } return logDataStore.getLogData(row); } LogDataTableModel(); String getColumnName(int column); int getColumnCount(); int getRowCount(); Object getValueAt(int rowIndex, int columnIndex); boolean isCellEditable(int rowIndex, int columnIndex); void add(LogData... logDatas); void add(LogData logData); int removeRows(AcceptCondition acceptCondition); @Override Class<?> getColumnClass(int columnIndex); LogData getLogData(int row); LogData[] getLogData(); @Override int getCount(); @Override void setValueAt(Object value, int rowIndex, int columnIndex); @Override boolean isMarked(int row); @Override MarkerColors getMarkerColors(int row); @Override void markRows(MarkerColors markerColor, int... rows); @Override void unmarkRows(int... rows); @Override void addNoteToRow(int row, Note note); @Override void clearNotes(); @Override TreeMap<Integer, Note> getAllNotes(); @Override Note getNote(int row); @Override Note removeNote(int row); @Override void addNoteObserver(NoteObserver observer); @Override void removeAllNoteObserver(); @Override void removeNoteObserver(NoteObserver observer); @Override void notifyAllNoteObservers(NoteEvent noteEvent); Memento saveToMemento(); void restoreFromMemento(Memento memento); int getDataLimit(); void setDataLimit(int dataLimit); @Override Note removeNote(int row, boolean notify); @Override int clear(); LogDataStore getLogDataStore();  }
@Test public void testGetLogDataInt() { for (int i = 0; i < logDatas.length; i++) { LogData logData = dataTableModel.getLogData(i); AssertJUnit.assertEquals(logDatas[i], logData); } }
@Test public void testGetLogData() { LogData[] logData2 = dataTableModel.getLogData(); for (int i = 0; i < logDatas.length; i++) { AssertJUnit.assertEquals(logDatas[i], logData2[i]); } }