Changeset 15232 in josm


Ignore:
Timestamp:
2019-07-07T23:38:39+02:00 (5 years ago)
Author:
Don-vip
Message:

see #17861 - update scripts/tests

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/TagInfoExtract.java

    r14746 r15232  
    7272import org.openstreetmap.josm.io.OsmTransferException;
    7373import org.openstreetmap.josm.spi.preferences.Config;
     74import org.openstreetmap.josm.tools.Http1Client;
     75import org.openstreetmap.josm.tools.HttpClient;
    7476import org.openstreetmap.josm.tools.Logging;
    7577import org.openstreetmap.josm.tools.OptionParser;
     
    9294    /**
    9395     * Main method.
     96     * @param args Main program arguments
     97     * @throws Exception if any error occurs
    9498     */
    9599    public static void main(String[] args) throws Exception {
     100        HttpClient.setFactory(Http1Client::new);
    96101        TagInfoExtract script = new TagInfoExtract();
    97102        script.parseCommandLineArguments(args);
  • trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java

    r15095 r15232  
    5858import org.openstreetmap.josm.testutils.mockers.WindowlessMapViewStateMocker;
    5959import org.openstreetmap.josm.testutils.mockers.WindowlessNavigatableComponentMocker;
     60import org.openstreetmap.josm.tools.Http1Client;
     61import org.openstreetmap.josm.tools.HttpClient;
    6062import org.openstreetmap.josm.tools.I18n;
    6163import org.openstreetmap.josm.tools.JosmRuntimeException;
     
    479481        DeleteCommand.setDeletionCallback(DeleteAction.defaultDeletionCallback);
    480482        OsmConnection.setOAuthAccessTokenFetcher(OAuthAuthorizationWizard::obtainAccessToken);
     483        HttpClient.setFactory(Http1Client::new);
    481484
    482485        // Set up i18n
Note: See TracChangeset for help on using the changeset viewer.