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

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

sonar - Performance - Method passes constant String of length 1 to character overridden method + add unit tests/javadoc

  • Property svn:eol-style set to native
File size: 826 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.gui.layer.MapViewPaintable.PaintableInvalidationEvent;
10
11/**
12 * Unit tests of {@link MapViewPaintable} class.
13 */
14public class MapViewPaintableTest {
15
16 /**
17 * Setup tests
18 */
19 @BeforeClass
20 public static void setUpBeforeClass() {
21 JOSMFixture.createUnitTestFixture().init();
22 }
23
24 /**
25 * Unit test of {@link MapViewPaintable.PaintableInvalidationEvent#toString}
26 */
27 @Test
28 public void testToString() {
29 assertEquals("LayerInvalidationEvent [layer=null]", new PaintableInvalidationEvent(null).toString());
30 }
31}
Note: See TracBrowser for help on using the repository browser.