Ignore:
Timestamp:
2016-09-03T14:22:22+02:00 (8 years ago)
Author:
Don-vip
Message:

convert more unit tests to JOSMTestRules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/osm/OsmUtilsTest.java

    r8857 r10945  
    55import static org.junit.Assert.assertTrue;
    66
    7 import org.junit.BeforeClass;
     7import org.junit.Rule;
    88import org.junit.Test;
    9 import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.testutils.JOSMTestRules;
     10
     11import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1012
    1113public class OsmUtilsTest {
     
    1416     * Setup test.
    1517     */
    16     @BeforeClass
    17     public static void setUp() {
    18         JOSMFixture.createUnitTestFixture().init();
    19     }
     18    @Rule
     19    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     20    public JOSMTestRules test = new JOSMTestRules();
    2021
    2122    @Test
Note: See TracChangeset for help on using the changeset viewer.