Ignore:
Timestamp:
2023-10-04T00:03:40+02:00 (19 months ago)
Author:
taylor.smock
Message:

See #16567: Update to JUnit 5

This removes new JOSMTestRules() with no additional setup and most
JOSMFixture calls.

Removing the bare JOSMTestRules speeds up the test suite since there are two
fewer System.gc() calls per test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/rtklib/RtkLibPosReaderTest.java

    r18048 r18853  
    1313
    1414import org.junit.jupiter.api.Test;
    15 import org.junit.jupiter.api.extension.RegisterExtension;
    1615import org.openstreetmap.josm.data.coor.LatLon;
    1716import org.openstreetmap.josm.data.gpx.GpxConstants;
    1817import org.openstreetmap.josm.data.gpx.WayPoint;
    19 import org.openstreetmap.josm.testutils.JOSMTestRules;
    2018import org.openstreetmap.josm.tools.date.DateUtils;
    2119import org.xml.sax.SAXException;
    22 
    23 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    2420
    2521/**
     
    2723 */
    2824class RtkLibPosReaderTest {
    29     /**
    30      * Set the timezone and timeout.
    31      */
    32     @RegisterExtension
    33     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    34     public JOSMTestRules test = new JOSMTestRules();
    35 
    3625    private static RtkLibPosReader read(String path) throws IOException, SAXException {
    3726        TimeZone.setDefault(TimeZone.getTimeZone("Europe/Berlin"));
Note: See TracChangeset for help on using the changeset viewer.