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/actions/downloadtasks/DownloadGpsTaskTest.java

    r9669 r10945  
    88import java.util.concurrent.ExecutionException;
    99
    10 import org.junit.BeforeClass;
     10import org.junit.Rule;
    1111import org.junit.Test;
    12 import org.openstreetmap.josm.JOSMFixture;
    1312import org.openstreetmap.josm.data.gpx.GpxData;
     13import org.openstreetmap.josm.testutils.JOSMTestRules;
     14
     15import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1416
    1517/**
     
    2325     * Setup test.
    2426     */
    25     @BeforeClass
    26     public static void setUp() {
    27         JOSMFixture.createUnitTestFixture().init();
    28     }
     27    @Rule
     28    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     29    public JOSMTestRules test = new JOSMTestRules();
    2930
    3031    /**
Note: See TracChangeset for help on using the changeset viewer.