Changeset 9147 in josm for trunk/test


Ignore:
Timestamp:
2015-12-25T14:16:49+01:00 (9 years ago)
Author:
simon04
Message:

Use HTTPS for some wiki requests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/ImageProviderTest.java

    r8857 r9147  
    1010import java.io.IOException;
    1111
     12import org.junit.BeforeClass;
    1213import org.junit.Test;
     14import org.openstreetmap.josm.JOSMFixture;
    1315import org.openstreetmap.josm.TestUtils;
    1416
     
    1719 */
    1820public class ImageProviderTest {
     21
     22    /**
     23     * Setup test.
     24     */
     25    @BeforeClass
     26    public static void setUp() {
     27        JOSMFixture.createUnitTestFixture().init();
     28    }
    1929
    2030    /**
     
    4151        assertNotNull(img);
    4252    }
     53
     54    @Test
     55    public void testWikiProtocol() throws Exception {
     56        // https://commons.wikimedia.org/wiki/File:OpenJDK_logo.svg
     57        assertNotNull(ImageProvider.get("wiki://OpenJDK_logo.svg"));
     58    }
    4359}
Note: See TracChangeset for help on using the changeset viewer.