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

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

Location:
trunk/test/unit/org/openstreetmap/josm/gui/bugreport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/bugreport/BugReportSettingsPanelTest.java

    r17275 r18037  
    44import static org.junit.jupiter.api.Assertions.assertNotNull;
    55
    6 import org.junit.jupiter.api.extension.RegisterExtension;
    7 import org.junit.jupiter.api.Test;
    8 import org.openstreetmap.josm.testutils.JOSMTestRules;
    96import org.openstreetmap.josm.tools.bugreport.BugReport;
    107
    11 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     8import org.junit.jupiter.api.Test;
    129
    1310/**
     
    1512 */
    1613class BugReportSettingsPanelTest {
    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     * Test {@link BugReportSettingsPanel}
  • trunk/test/unit/org/openstreetmap/josm/gui/bugreport/DebugTextDisplayTest.java

    r17275 r18037  
    44import static org.junit.jupiter.api.Assertions.assertEquals;
    55
    6 import org.junit.jupiter.api.extension.RegisterExtension;
     6import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils;
     7import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
     8
    79import org.junit.jupiter.api.Test;
    8 import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils;
    9 import org.openstreetmap.josm.testutils.JOSMTestRules;
    10 
    11 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1210
    1311/**
    1412 * Unit test of {@link DebugTextDisplay} class.
    1513 */
     14@BasicPreferences
    1615class DebugTextDisplayTest {
    17     /**
    18      * Setup test
    19      */
    20     @RegisterExtension
    21     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    22     public JOSMTestRules test = new JOSMTestRules().preferences();
    23 
    2416    /**
    2517     * Test {@link DebugTextDisplay#getCodeText}
Note: See TracChangeset for help on using the changeset viewer.