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

Last change on this file since 17360 was 17275, checked in by Don-vip, 3 years ago

see #16567 - upgrade almost all tests to JUnit 5, except those depending on WiremockRule

See https://github.com/tomakehurst/wiremock/issues/684

  • Property svn:eol-style set to native
File size: 819 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.layer;
3
4import static org.junit.jupiter.api.Assertions.assertNull;
5
6import java.util.Collections;
7
8import org.junit.jupiter.api.BeforeAll;
9import org.junit.jupiter.api.Test;
10import org.openstreetmap.josm.JOSMFixture;
11
12/**
13 * Unit tests of {@link NativeScaleLayer} class.
14 */
15class NativeScaleLayerTest {
16
17 /**
18 * Setup tests
19 */
20 @BeforeAll
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 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.