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

Last change on this file was 18853, checked in by taylor.smock, 7 months ago

See #16567: Update to JUnit 5

This removes new JOSMTestRules() with no additional setup and most
JOSMFixture calls.

Removing the bare JOSMTestRules speeds up the test suite since there are two
fewer System.gc() calls per test.

  • Property svn:eol-style set to native
File size: 611 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.layer;
3
4import static org.junit.jupiter.api.Assertions.assertEquals;
5
6import org.junit.jupiter.api.Test;
7import org.openstreetmap.josm.gui.layer.MapViewPaintable.PaintableInvalidationEvent;
8
9/**
10 * Unit tests of {@link MapViewPaintable} class.
11 */
12class MapViewPaintableTest {
13 /**
14 * Unit test of {@link MapViewPaintable.PaintableInvalidationEvent#toString}
15 */
16 @Test
17 void testToString() {
18 assertEquals("LayerInvalidationEvent [layer=null]", new PaintableInvalidationEvent(null).toString());
19 }
20}
Note: See TracBrowser for help on using the repository browser.