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

    r17275 r18853  
    44import java.io.File;
    55
    6 import org.junit.jupiter.api.extension.RegisterExtension;
    76import org.junit.jupiter.api.Test;
    87import org.openstreetmap.josm.TestUtils;
    9 import org.openstreetmap.josm.testutils.JOSMTestRules;
    108
    11 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    129import nl.jqno.equalsverifier.EqualsVerifier;
    1310import nl.jqno.equalsverifier.Warning;
     
    1714 */
    1815class GpxImageEntryTest {
    19 
    20     /**
    21      * Setup test.
    22      */
    23     @RegisterExtension
    24     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    25     public JOSMTestRules test = new JOSMTestRules();
    26 
    2716    /**
    2817     * Unit test of methods {@link GpxImageEntry#equals} and {@link GpxImageEntry#hashCode}.
Note: See TracChangeset for help on using the changeset viewer.