Last change
on this file since 9779 was 9779, checked in by Don-vip, 8 years ago |
add more unit tests
|
-
Property svn:eol-style
set to
native
|
File size:
1.0 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.layer.markerlayer;
|
---|
3 |
|
---|
4 | import static org.junit.Assert.assertEquals;
|
---|
5 | import static org.junit.Assert.assertNotNull;
|
---|
6 |
|
---|
7 | import org.junit.BeforeClass;
|
---|
8 | import org.junit.Test;
|
---|
9 | import org.openstreetmap.josm.JOSMFixture;
|
---|
10 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
11 | import org.openstreetmap.josm.data.gpx.WayPoint;
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Unit tests of {@link PlayHeadMarker} class.
|
---|
15 | */
|
---|
16 | public class PlayHeadMarkerTest {
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Setup tests
|
---|
20 | */
|
---|
21 | @BeforeClass
|
---|
22 | public static void setUpBeforeClass() {
|
---|
23 | JOSMFixture.createUnitTestFixture().init();
|
---|
24 | }
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Unit test of {@link PlayHeadMarker#PlayHeadMarker}.
|
---|
28 | */
|
---|
29 | @Test
|
---|
30 | public void testPlayHeadMarker() {
|
---|
31 | PlayHeadMarker marker = PlayHeadMarker.create();
|
---|
32 | assertNotNull(marker);
|
---|
33 | marker.actionPerformed(null);
|
---|
34 | assertEquals("", marker.getText());
|
---|
35 | WayPoint wpt = marker.convertToWayPoint();
|
---|
36 | assertEquals(LatLon.ZERO, wpt.getCoor());
|
---|
37 | }
|
---|
38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.