source: josm/trunk/test/unit/org/openstreetmap/josm/gui/layer/NativeScaleLayerTest.java@ 11241

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

sonar - pmd:ImmutableField + remove unused code

  • Property svn:eol-style set to native
File size: 797 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.layer;
3
4import static org.junit.Assert.assertNull;
5
6import java.util.Collections;
7
8import org.junit.BeforeClass;
9import org.junit.Test;
10import org.openstreetmap.josm.JOSMFixture;
11
12/**
13 * Unit tests of {@link NativeScaleLayer} class.
14 */
15public class NativeScaleLayerTest {
16
17 /**
18 * Setup tests
19 */
20 @BeforeClass
21 public static void setUpBeforeClass() {
22 JOSMFixture.createUnitTestFixture().init();
23 }
24
25 /**
26 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12255">#12255</a>.
27 */
28 @Test
29 public void testTicket12255() {
30 assertNull(new NativeScaleLayer.ScaleList(Collections.<Double>emptyList()).getSnapScale(10, 2, false));
31 }
32}
Note: See TracBrowser for help on using the repository browser.