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/plugins/PluginHandlerTest.java

    r17573 r18037  
    1717import javax.swing.JScrollPane;
    1818
    19 import org.junit.jupiter.api.extension.RegisterExtension;
    20 import org.junit.jupiter.api.Test;
    2119import org.openstreetmap.josm.TestUtils;
    2220import org.openstreetmap.josm.gui.MainApplication;
     
    2523import org.openstreetmap.josm.plugins.PluginHandler.DeprecatedPlugin;
    2624import org.openstreetmap.josm.plugins.PluginHandler.PluginInformationAction;
    27 import org.openstreetmap.josm.testutils.JOSMTestRules;
     25import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
    2826import org.openstreetmap.josm.testutils.mockers.HelpAwareOptionPaneMocker;
    2927import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker;
    3028
    31 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    3229import nl.jqno.equalsverifier.EqualsVerifier;
     30import org.junit.jupiter.api.Test;
    3331
    3432/**
    3533 * Unit tests of {@link PluginHandler} class.
    3634 */
     35@BasicPreferences
    3736class PluginHandlerTest {
    38 
    39     /**
    40      * Setup test.
    41      */
    42     @RegisterExtension
    43     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    44     public JOSMTestRules test = new JOSMTestRules();
    45 
    4637    /**
    4738     * Unit test of methods {@link DeprecatedPlugin#equals} and {@link DeprecatedPlugin#hashCode}.
Note: See TracChangeset for help on using the changeset viewer.