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/oauth/ManualAuthorizationUITest.java

    r17275 r18037  
    44import static org.junit.jupiter.api.Assertions.assertNotNull;
    55
    6 import org.junit.jupiter.api.extension.RegisterExtension;
    76import org.junit.jupiter.api.Test;
    87import org.openstreetmap.josm.gui.MainApplication;
    9 import org.openstreetmap.josm.testutils.JOSMTestRules;
    10 
    11 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     8import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
    129
    1310/**
    1411 * Unit tests of {@link ManualAuthorizationUI} class.
    1512 */
     13@BasicPreferences
    1614class ManualAuthorizationUITest {
    17 
    18     /**
    19      * Setup tests
    20      */
    21     @RegisterExtension
    22     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    23     public JOSMTestRules test = new JOSMTestRules().preferences();
    24 
    2515    /**
    2616     * Unit test of {@link ManualAuthorizationUI#ManualAuthorizationUI}.
Note: See TracChangeset for help on using the changeset viewer.