Last change
on this file since 12564 was 12564, checked in by Don-vip, 7 years ago |
fix unit tests
|
-
Property svn:eol-style
set to
native
|
File size:
974 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.layer;
|
---|
3 |
|
---|
4 | import static org.junit.Assert.assertEquals;
|
---|
5 |
|
---|
6 | import org.junit.Rule;
|
---|
7 | import org.junit.Test;
|
---|
8 | import org.openstreetmap.josm.data.imagery.ImageryInfo;
|
---|
9 | import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryType;
|
---|
10 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
11 |
|
---|
12 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
---|
13 |
|
---|
14 | /**
|
---|
15 | * Unit tests of {@link WMTSLayer} class.
|
---|
16 | */
|
---|
17 | public class WMTSLayerTest {
|
---|
18 |
|
---|
19 | /**
|
---|
20 | * Setup tests
|
---|
21 | */
|
---|
22 | @Rule
|
---|
23 | @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
|
---|
24 | public JOSMTestRules test = new JOSMTestRules();
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Unit test of {@link WMTSLayer#WMTSLayer}.
|
---|
28 | */
|
---|
29 | @Test
|
---|
30 | public void testWMTSLayer() {
|
---|
31 | WMTSLayer wmts = new WMTSLayer(new ImageryInfo("test wmts", "http://localhost", "wmts", null, null));
|
---|
32 | assertEquals(ImageryType.WMTS, wmts.getInfo().getImageryType());
|
---|
33 | }
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.