source: josm/trunk/test/unit/org/openstreetmap/josm/gui/layer/WMSLayerTest.java@ 9504

Last change on this file since 9504 was 9436, checked in by Don-vip, 8 years ago

increase test coverage

File size: 970 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.layer;
3
4import static org.junit.Assert.assertEquals;
5
6import org.junit.BeforeClass;
7import org.junit.Test;
8import org.openstreetmap.josm.JOSMFixture;
9import org.openstreetmap.josm.Main;
10import org.openstreetmap.josm.data.imagery.ImageryInfo;
11import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryType;
12
13/**
14 * Unit tests of {@link WMSLayer} class.
15 */
16public class WMSLayerTest {
17
18 /**
19 * Setup tests
20 */
21 @BeforeClass
22 public static void setUpBeforeClass() {
23 JOSMFixture.createUnitTestFixture().init(true);
24 }
25
26 /**
27 * Unit test of {@link WMSLayer#WMSLayer}.
28 */
29 @Test
30 public void testWMSLayer() {
31 WMSLayer wms = new WMSLayer(new ImageryInfo("test wms", "http://localhost"));
32 Main.main.addLayer(wms);
33 assertEquals(ImageryType.WMS, wms.getInfo().getImageryType());
34 }
35}
Note: See TracBrowser for help on using the repository browser.