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

improve unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/validator/ValidatorTreePanelTest.java

    r10880 r10962  
    1212import java.util.Set;
    1313
    14 import org.junit.BeforeClass;
     14import org.junit.Rule;
    1515import org.junit.Test;
    16 import org.openstreetmap.josm.JOSMFixture;
    1716import org.openstreetmap.josm.data.osm.Node;
    1817import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1918import org.openstreetmap.josm.data.validation.Severity;
    2019import org.openstreetmap.josm.data.validation.TestError;
     20import org.openstreetmap.josm.testutils.JOSMTestRules;
     21
     22import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    2123
    2224/**
     
    2830     * Setup tests
    2931     */
    30     @BeforeClass
    31     public static void setUpBeforeClass() {
    32         JOSMFixture.createUnitTestFixture().init(true);
    33     }
     32    @Rule
     33    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     34    public JOSMTestRules test = new JOSMTestRules().preferences();
    3435
    3536    /**
Note: See TracChangeset for help on using the changeset viewer.