Changeset 10072 in josm for trunk/test


Ignore:
Timestamp:
2016-03-28T18:27:56+02:00 (4 years ago)
Author:
Don-vip
Message:

refactor duplicated code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/SelectionTableCellRendererTest.java

    r9907 r10072  
    3030    public void testSelectionTableCellRenderer() {
    3131        MemberTableModel model = new MemberTableModel(null, null, null);
    32         SelectionTableCellRenderer r = new SelectionTableCellRenderer();
    33         r.setMemberTableModel(model);
     32        SelectionTableCellRenderer r = new SelectionTableCellRenderer(model);
    3433        assertEquals(r, r.getTableCellRendererComponent(null, null, false, false, 0, 0));
    3534        assertEquals(r, r.getTableCellRendererComponent(new JTable(model), new Node(), false, false, 0, 0));
Note: See TracChangeset for help on using the changeset viewer.