Changeset 18021 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2021-07-14T20:52:02+02:00 (3 years ago)
Author:
Don-vip
Message:

see #8472 - don't load image from Wikimedia Commons for real in unit test. Breaks our CI in case of network/load issues, see https://github.com/openstreetmap/josm/runs/3069693523

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/WikimediaCommonsLoaderTest.java

    r17883 r18021  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.gui.layer.geoimage;
    3 
    4 import com.github.tomakehurst.wiremock.WireMockServer;
    5 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    6 import org.junit.jupiter.api.Test;
    7 import org.junit.jupiter.api.extension.RegisterExtension;
    8 import org.openstreetmap.josm.data.Bounds;
    9 import org.openstreetmap.josm.testutils.JOSMTestRules;
    10 
    11 import java.net.URL;
    12 import java.util.List;
    133
    144import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
     
    177import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.options;
    188import static org.junit.jupiter.api.Assertions.assertEquals;
     9
     10import java.net.URL;
     11import java.util.List;
     12
     13import org.junit.jupiter.api.Test;
     14import org.junit.jupiter.api.extension.RegisterExtension;
     15import org.openstreetmap.josm.data.Bounds;
     16import org.openstreetmap.josm.testutils.JOSMTestRules;
     17
     18import com.github.tomakehurst.wiremock.WireMockServer;
     19
     20import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1921
    2022/**
     
    5153        assertEquals(new URL("https://upload.wikimedia.org/wikipedia/commons/e/e8/ISS053-E-105875_-_View_of_Earth.jpg"),
    5254                image.getImageUrl());
    53         image.read(null); // load the image from commons.wikimedia.org
    5455    }
    5556
Note: See TracChangeset for help on using the changeset viewer.