Ignore:
Timestamp:
2023-10-04T00:03:40+02:00 (8 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/data/gpx/WayPointTest.java

    r17715 r18853  
    22package org.openstreetmap.josm.data.gpx;
    33
    4 import org.junit.jupiter.api.extension.RegisterExtension;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertNotEquals;
     6
     7import java.time.Instant;
     8
    59import org.junit.jupiter.api.Test;
    610import org.openstreetmap.josm.TestUtils;
    711import org.openstreetmap.josm.data.coor.LatLon;
    8 import org.openstreetmap.josm.testutils.JOSMTestRules;
    912
    10 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1113import nl.jqno.equalsverifier.EqualsVerifier;
    1214import nl.jqno.equalsverifier.Warning;
    13 
    14 import java.time.Instant;
    15 
    16 import static org.junit.jupiter.api.Assertions.assertEquals;
    17 import static org.junit.jupiter.api.Assertions.assertNotEquals;
    1815
    1916/**
     
    2118 */
    2219class WayPointTest {
    23 
    24     /**
    25      * Setup test.
    26      */
    27     @RegisterExtension
    28     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    29     public JOSMTestRules test = new JOSMTestRules();
    30 
    3120    /**
    3221     * Unit test of methods {@link WayPoint#equals} and {@link WayPoint#hashCode}.
Note: See TracChangeset for help on using the changeset viewer.