Changeset 12807 in josm for trunk/test


Ignore:
Timestamp:
2017-09-09T19:58:38+02:00 (2 years ago)
Author:
Don-vip
Message:

see #15229 - see #15182 - see #14794 - checkstyle, unit tests

Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/tools/HttpClientTest.java

    r12570 r12807  
    183183    }
    184184
    185     @Test()
     185    @Test
    186186    public void testHttp401() throws IOException {
    187187        // https://tools.ietf.org/html/rfc2324
  • trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java

    r12795 r12807  
    2323import org.openstreetmap.josm.gui.MainApplication;
    2424import org.openstreetmap.josm.gui.mappaint.MapPaintStyles;
     25import org.openstreetmap.josm.gui.oauth.OAuthAuthorizationWizard;
    2526import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets;
    2627import org.openstreetmap.josm.gui.util.GuiHelper;
     
    2829import org.openstreetmap.josm.io.OsmApi;
    2930import org.openstreetmap.josm.io.OsmApiInitializationException;
     31import org.openstreetmap.josm.io.OsmConnection;
    3032import org.openstreetmap.josm.io.OsmTransferCanceledException;
    3133import org.openstreetmap.josm.tools.I18n;
     
    283285        // Setup callbacks
    284286        DeleteCommand.setDeletionCallback(DeleteAction.defaultDeletionCallback);
     287        OsmConnection.setOAuthAccessTokenFetcher(OAuthAuthorizationWizard::obtainAccessToken);
    285288
    286289        // Set up i18n
Note: See TracChangeset for help on using the changeset viewer.