Changeset 9784 in josm for trunk/test/unit
- Timestamp:
- 2016-02-11T01:14:54+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/markerlayer/AudioMarkerTest.java
r9782 r9784 4 4 import static org.junit.Assert.assertEquals; 5 5 6 import java.io.File;7 6 import java.net.MalformedURLException; 7 import java.net.URL; 8 8 9 9 import org.junit.BeforeClass; 10 10 import org.junit.Test; 11 11 import org.openstreetmap.josm.JOSMFixture; 12 import org.openstreetmap.josm.TestUtils;13 12 import org.openstreetmap.josm.data.coor.LatLon; 14 13 import org.openstreetmap.josm.data.gpx.Extensions; … … 16 15 import org.openstreetmap.josm.data.gpx.GpxData; 17 16 import org.openstreetmap.josm.data.gpx.WayPoint; 18 import org.openstreetmap.josm.tools.AudioPlayer;19 17 20 18 /** … … 37 35 @Test 38 36 public void testAudioMarker() throws MalformedURLException { 37 URL url = new URL("file://something.wav"); 39 38 AudioMarker marker = new AudioMarker( 40 39 LatLon.ZERO, 41 40 null, 42 new File(TestUtils.getRegressionDataFile(6851, "20111003_121226.wav")).toURI().toURL(),41 url, 43 42 new MarkerLayer(new GpxData(), null, null, null), 44 43 1d, 2d); 45 try { 46 marker.actionPerformed(null); 47 } finally { 48 AudioPlayer.reset(); 49 } 44 assertEquals(url, marker.url()); 50 45 assertEquals("2", marker.getText()); 51 46 WayPoint wpt = marker.convertToWayPoint();
Note:
See TracChangeset
for help on using the changeset viewer.