Last change
on this file since 16983 was 16983, checked in by simon04, 4 years ago |
see #18694 - Extract ImageProviderTestManual, ImageProviderTestIT
|
File size:
834 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.tools;
|
---|
3 |
|
---|
4 | import static org.junit.Assert.assertNotNull;
|
---|
5 |
|
---|
6 | import org.junit.Rule;
|
---|
7 | import org.junit.Test;
|
---|
8 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
9 |
|
---|
10 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Integration tests of {@link ImageProvider} class.
|
---|
14 | */
|
---|
15 | public class ImageProviderTestIT {
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Setup test.
|
---|
19 | */
|
---|
20 | @Rule
|
---|
21 | @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
|
---|
22 | public JOSMTestRules test = new JOSMTestRules();
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * Test fetching an image using {@code wiki://} protocol.
|
---|
26 | */
|
---|
27 | @Test
|
---|
28 | public void testWikiProtocol() {
|
---|
29 | // https://commons.wikimedia.org/wiki/File:OpenJDK_logo.svg
|
---|
30 | assertNotNull(ImageProvider.get("wiki://OpenJDK_logo.svg"));
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.