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

convert more unit tests to JOSMTestRules

Location:
trunk/test/unit/org/openstreetmap/josm/corrector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/corrector/ReverseWayNoTagCorrectorTest.java

    r9547 r10945  
    44import static org.junit.Assert.assertEquals;
    55
    6 import org.junit.BeforeClass;
     6import org.junit.Rule;
    77import org.junit.Test;
    8 import org.openstreetmap.josm.JOSMFixture;
    98import org.openstreetmap.josm.data.osm.Tag;
     9import org.openstreetmap.josm.testutils.JOSMTestRules;
     10
     11import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1012
    1113/**
     
    1719     * Setup test.
    1820     */
    19     @BeforeClass
    20     public static void setUp() {
    21         JOSMFixture.createUnitTestFixture().init();
    22     }
     21    @Rule
     22    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     23    public JOSMTestRules test = new JOSMTestRules();
    2324
    2425    /**
  • trunk/test/unit/org/openstreetmap/josm/corrector/ReverseWayTagCorrectorTest.java

    r8180 r10945  
    33
    44import org.junit.Assert;
    5 import org.junit.BeforeClass;
     5import org.junit.Rule;
    66import org.junit.Test;
    7 import org.openstreetmap.josm.JOSMFixture;
    87import org.openstreetmap.josm.data.osm.Tag;
     8import org.openstreetmap.josm.testutils.JOSMTestRules;
     9
     10import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    911
    1012/**
     
    1618     * Setup test.
    1719     */
    18     @BeforeClass
    19     public static void setUp() {
    20         JOSMFixture.createUnitTestFixture().init();
    21     }
     20    @Rule
     21    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     22    public JOSMTestRules test = new JOSMTestRules();
    2223
    2324    /**
Note: See TracChangeset for help on using the changeset viewer.