// License: GPL. For details, see LICENSE file.
package org.openstreetmap.josm.gui.layer.markerlayer;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openstreetmap.josm.JOSMFixture;
import org.openstreetmap.josm.data.coor.LatLon;
import org.openstreetmap.josm.data.gpx.WayPoint;
/**
* Unit tests of {@link PlayHeadMarker} class.
*/
public class PlayHeadMarkerTest {
/**
* Setup tests
*/
@BeforeClass
public static void setUpBeforeClass() {
JOSMFixture.createUnitTestFixture().init();
}
/**
* Unit test of {@link PlayHeadMarker#PlayHeadMarker}.
*/
@Test
public void testPlayHeadMarker() {
PlayHeadMarker marker = PlayHeadMarker.create();
assertNotNull(marker);
marker.actionPerformed(null);
assertEquals("", marker.getText());
WayPoint wpt = marker.convertToWayPoint();
assertEquals(LatLon.ZERO, wpt.getCoor());
}
}