Ignore:
Timestamp:
2021-07-16T09:16:33+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21064 - Add JUnit 5 extension for preferences (patch by taylor.smock)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/properties/RecentTagCollectionTest.java

    r17275 r18037  
    99import java.util.Collections;
    1010
    11 import org.junit.jupiter.api.extension.RegisterExtension;
    12 import org.junit.jupiter.api.Test;
    1311import org.openstreetmap.josm.data.osm.Tag;
    1412import org.openstreetmap.josm.data.osm.search.SearchParseError;
    1513import org.openstreetmap.josm.data.osm.search.SearchSetting;
    1614import org.openstreetmap.josm.data.preferences.ListProperty;
    17 import org.openstreetmap.josm.testutils.JOSMTestRules;
     15import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
    1816
    19 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     17import org.junit.jupiter.api.Test;
    2018
    2119/**
    2220 * Unit tests of {@link RecentTagCollection} class.
    2321 */
     22@BasicPreferences
    2423class RecentTagCollectionTest {
    25 
    26     /**
    27      * Setup tests
    28      */
    29     @RegisterExtension
    30     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    31     public JOSMTestRules test = new JOSMTestRules().preferences();
    32 
    3324    /**
    3425     * Performs various tests on a {@link RecentTagCollection}.
Note: See TracChangeset for help on using the changeset viewer.