Ignore:
Timestamp:
2016-09-05T01:10:07+02:00 (8 years ago)
Author:
Don-vip
Message:

improve unit tests

File:
1 edited

Legend:

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

    r10072 r10962  
    66import javax.swing.JTable;
    77
    8 import org.junit.BeforeClass;
     8import org.junit.Rule;
    99import org.junit.Test;
    10 import org.openstreetmap.josm.JOSMFixture;
    1110import org.openstreetmap.josm.data.osm.Node;
     11import org.openstreetmap.josm.testutils.JOSMTestRules;
     12
     13import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1214
    1315/**
     
    1921     * Setup test.
    2022     */
    21     @BeforeClass
    22     public static void setUpBeforeClass() {
    23         JOSMFixture.createUnitTestFixture().init();
    24     }
     23    @Rule
     24    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     25    public JOSMTestRules test = new JOSMTestRules().preferences();
    2526
    2627    /**
Note: See TracChangeset for help on using the changeset viewer.