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

    r17275 r18853  
    22package org.openstreetmap.josm.data.validation.util;
    33
    4 import org.junit.jupiter.api.extension.RegisterExtension;
    54import org.junit.jupiter.api.Test;
    6 import org.openstreetmap.josm.testutils.JOSMTestRules;
    75
    8 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    96import net.trajano.commons.testing.UtilityClassTestUtil;
    107
     
    1310 */
    1411class ValUtilTest {
    15 
    16     /**
    17      * Setup test.
    18      */
    19     @RegisterExtension
    20     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    21     public JOSMTestRules test = new JOSMTestRules();
    22 
    2312    /**
    2413     * Tests that {@code ValUtil} satisfies utility class criteria.
Note: See TracChangeset for help on using the changeset viewer.