Changeset 12358 in josm


Ignore:
Timestamp:
2017-06-09T11:54:49+02:00 (6 months ago)
Author:
michael2402
Message:

DownloadAlongTrackActionTest: Change to test rules to get a cleaner test environment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongTrackActionTest.java

    r10436 r12358  
    55import static org.junit.Assert.assertNull;
    66
    7 import org.junit.BeforeClass;
     7import org.junit.Rule;
    88import org.junit.Test;
    9 import org.openstreetmap.josm.JOSMFixture;
    109import org.openstreetmap.josm.Main;
    1110import org.openstreetmap.josm.TestUtils;
     
    1514import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    1615import org.openstreetmap.josm.io.GpxReaderTest;
     16import org.openstreetmap.josm.testutils.JOSMTestRules;
     17
     18import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1719
    1820/**
     
    2224
    2325    /**
    24      * Setup test.
     26     * The test rules for this test
    2527     */
    26     @BeforeClass
    27     public static void setUpBeforeClass() {
    28         JOSMFixture.createUnitTestFixture().init(true);
    29     }
     28    @Rule
     29    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     30    public JOSMTestRules test = new JOSMTestRules().preferences().platform();
    3031
    3132    private static PleaseWaitRunnable createTask(String file) throws Exception {
Note: See TracChangeset for help on using the changeset viewer.