source: josm/trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/AddTMSLayerPanelTest.java@ 10977

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

add/update unit tests, fix indentation

  • Property svn:eol-style set to native
File size: 918 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.preferences.imagery;
3
4import static org.junit.Assert.assertEquals;
5import static org.junit.Assert.assertFalse;
6
7import org.junit.Rule;
8import org.junit.Test;
9import org.openstreetmap.josm.testutils.JOSMTestRules;
10
11import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
12
13/**
14 * Unit tests of {@link AddTMSLayerPanel} class.
15 */
16public class AddTMSLayerPanelTest {
17
18 /**
19 * Setup tests
20 */
21 @Rule
22 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
23 public JOSMTestRules test = new JOSMTestRules().preferences();
24
25 /**
26 * Unit test of {@link AddTMSLayerPanel}.
27 */
28 @Test
29 public void testAddTMSLayerPanel() {
30 AddTMSLayerPanel panel = new AddTMSLayerPanel();
31 assertEquals("", panel.getImageryInfo().getUrl());
32 assertFalse(panel.isImageryValid());
33 }
34}
Note: See TracBrowser for help on using the repository browser.