source: josm/trunk/test/unit/org/openstreetmap/josm/gui/layer/NoteLayerTest.java@ 10640

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

fix #13208 - Use real string for concatenation in note layer tooltip (patch by michael2402) + add unit test (regression from r8846) - gsoc-core

  • Property svn:eol-style set to native
File size: 709 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;
9
10/**
11 * Unit tests of {@link NoteLayer} class.
12 */
13public class NoteLayerTest {
14
15 /**
16 * Setup tests
17 */
18 @BeforeClass
19 public static void setUpBeforeClass() {
20 JOSMFixture.createUnitTestFixture().init();
21 }
22
23 /**
24 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/13208">#13208</a>.
25 */
26 @Test
27 public void testTicket13208() {
28 assertEquals("0 Notes", new NoteLayer().getToolTipText());
29 }
30}
Note: See TracBrowser for help on using the repository browser.