Ignore:
Timestamp:
2021-07-16T09:16:33+02:00 (5 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/help/HyperlinkHandlerTest.java

    r17275 r18037  
    1111import javax.swing.text.html.HTMLEditorKit;
    1212
    13 import org.junit.jupiter.api.extension.RegisterExtension;
     13import org.openstreetmap.josm.gui.widgets.JosmEditorPane;
     14import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
     15
    1416import org.junit.jupiter.api.Test;
    15 import org.openstreetmap.josm.gui.widgets.JosmEditorPane;
    16 import org.openstreetmap.josm.testutils.JOSMTestRules;
    17 
    18 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1917
    2018/**
    2119 * Unit tests of {@link HyperlinkHandler} class.
    2220 */
     21@BasicPreferences
    2322class HyperlinkHandlerTest {
    24 
    25     /**
    26      * Setup tests
    27      */
    28     @RegisterExtension
    29     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    30     public JOSMTestRules test = new JOSMTestRules().preferences();
    31 
    3223    /**
    3324     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/17338">#17338</a>.
Note: See TracChangeset for help on using the changeset viewer.