Ignore:
Timestamp:
2020-02-17T01:01:33+01:00 (5 years ago)
Author:
Don-vip
Message:

see #18440 - register API key provider in integration test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java

    r15810 r15871  
    3131import org.junit.runners.Parameterized.Parameters;
    3232import org.openstreetmap.gui.jmapviewer.Coordinate;
     33import org.openstreetmap.gui.jmapviewer.FeatureAdapter;
    3334import org.openstreetmap.gui.jmapviewer.TileXY;
    3435import org.openstreetmap.gui.jmapviewer.interfaces.ICoordinate;
     
    5758import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    5859import org.openstreetmap.josm.data.projection.Projections;
     60import org.openstreetmap.josm.io.imagery.ApiKeyProvider;
    5961import org.openstreetmap.josm.io.imagery.WMSImagery.WMSGetCapabilitiesException;
    6062import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    101103    @BeforeClass
    102104    public static void beforeClass() throws IOException {
     105        FeatureAdapter.registerApiKeyAdapter(ApiKeyProvider::retrieveApiKey);
    103106        helper = new TMSCachedTileLoaderJob(null, null, new CacheAccess<>(null), new TileJobOptions(0, 0, null, 0), null);
    104107        errorsToIgnore.addAll(TestUtils.getIgnoredErrorMessages(ImageryPreferenceTestIT.class));
Note: See TracChangeset for help on using the changeset viewer.