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

    r17275 r18853  
    22package org.openstreetmap.josm.data.osm;
    33
    4 import org.junit.jupiter.api.extension.RegisterExtension;
    54import org.junit.jupiter.api.Test;
    65import org.openstreetmap.josm.TestUtils;
    7 import org.openstreetmap.josm.testutils.JOSMTestRules;
    86
    9 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    107import nl.jqno.equalsverifier.EqualsVerifier;
    118import nl.jqno.equalsverifier.Warning;
     
    1512 */
    1613class StorageTest {
    17 
    18     /**
    19      * Setup test.
    20      */
    21     @RegisterExtension
    22     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    23     public JOSMTestRules test = new JOSMTestRules();
    24 
    2514    /**
    2615     * Unit test of methods {@link Storage#equals} and {@link Storage#hashCode}.
Note: See TracChangeset for help on using the changeset viewer.