Changeset 9782 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2016-02-10T23:41:26+01:00 (9 years ago)
Author:
Don-vip
Message:

attempt to fix unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/markerlayer/AudioMarkerTest.java

    r9779 r9782  
    44import static org.junit.Assert.assertEquals;
    55
     6import java.io.File;
    67import java.net.MalformedURLException;
    7 import java.net.URL;
    88
    99import org.junit.BeforeClass;
    1010import org.junit.Test;
    1111import org.openstreetmap.josm.JOSMFixture;
     12import org.openstreetmap.josm.TestUtils;
    1213import org.openstreetmap.josm.data.coor.LatLon;
    1314import org.openstreetmap.josm.data.gpx.Extensions;
     
    1516import org.openstreetmap.josm.data.gpx.GpxData;
    1617import org.openstreetmap.josm.data.gpx.WayPoint;
     18import org.openstreetmap.josm.tools.AudioPlayer;
    1719
    1820/**
     
    3840                LatLon.ZERO,
    3941                null,
    40                 new URL("file://something.wav"),
     42                new File(TestUtils.getRegressionDataFile(6851, "20111003_121226.wav")).toURI().toURL(),
    4143                new MarkerLayer(new GpxData(), null, null, null),
    4244                1d, 2d);
    43         marker.actionPerformed(null);
     45        try {
     46            marker.actionPerformed(null);
     47        } finally {
     48            AudioPlayer.reset();
     49        }
    4450        assertEquals("2", marker.getText());
    4551        WayPoint wpt = marker.convertToWayPoint();
Note: See TracChangeset for help on using the changeset viewer.