LogDataTableModel extends AbstractTableModel implements LogDataCollector, MarkableTableModel, NotableTableModel { @Override public MarkerColors getMarkerColors(int row) { return logDataStore.getMarkerColors(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 testGetMarkerColors() { AssertJUnit.assertEquals(MarkerColors.Brown, dataTableModel.getMarkerColors(4)); AssertJUnit.assertEquals(MarkerColors.Orange, dataTableModel.getMarkerColors(6)); }