Changeset 9782 in josm for trunk/test
- Timestamp:
- 2016-02-10T23:41:26+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/markerlayer/AudioMarkerTest.java
r9779 r9782 4 4 import static org.junit.Assert.assertEquals; 5 5 6 import java.io.File; 6 7 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; 12 13 import org.openstreetmap.josm.data.coor.LatLon; 13 14 import org.openstreetmap.josm.data.gpx.Extensions; … … 15 16 import org.openstreetmap.josm.data.gpx.GpxData; 16 17 import org.openstreetmap.josm.data.gpx.WayPoint; 18 import org.openstreetmap.josm.tools.AudioPlayer; 17 19 18 20 /** … … 38 40 LatLon.ZERO, 39 41 null, 40 new URL("file://something.wav"),42 new File(TestUtils.getRegressionDataFile(6851, "20111003_121226.wav")).toURI().toURL(), 41 43 new MarkerLayer(new GpxData(), null, null, null), 42 44 1d, 2d); 43 marker.actionPerformed(null); 45 try { 46 marker.actionPerformed(null); 47 } finally { 48 AudioPlayer.reset(); 49 } 44 50 assertEquals("2", marker.getText()); 45 51 WayPoint wpt = marker.convertToWayPoint();
Note:
See TracChangeset
for help on using the changeset viewer.