Changeset 18650 in josm for trunk/test/unit


Ignore:
Timestamp:
2023-02-08T18:31:58+01:00 (16 months ago)
Author:
taylor.smock
Message:

Fix #20768: Add OAuth 2.0 support

This also fixes #21607: authentication buttons are unavailable when credentials
are set.

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTaskTest.java

    r17275 r18650  
    1414import javax.swing.JPanel;
    1515
     16import org.junit.jupiter.api.BeforeEach;
    1617import org.junit.jupiter.api.extension.RegisterExtension;
    1718import org.junit.jupiter.api.Test;
     
    1920import org.openstreetmap.josm.data.UserIdentityManager;
    2021import org.openstreetmap.josm.gui.oauth.OAuthAuthorizationWizard;
     22import org.openstreetmap.josm.spi.preferences.Config;
    2123import org.openstreetmap.josm.testutils.JOSMTestRules;
    2224import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker;
     
    6668            invocation.proceed(serverUrl);
    6769        }
     70    }
     71
     72    /**
     73     * These tests were written with {@link org.openstreetmap.josm.data.oauth.OAuthVersion#OAuth10a} as the default auth method.
     74     */
     75    @BeforeEach
     76    void setup() {
     77        Config.getPref().put("osm-server.auth-method", "oauth");
    6878    }
    6979
Note: See TracChangeset for help on using the changeset viewer.