Ignore:
Timestamp:
2016-02-11T01:14:54+01:00 (8 years ago)
Author:
Don-vip
Message:

attempt to fix audio unit test

File:
1 edited

Legend:

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

    r9782 r9784  
    44import static org.junit.Assert.assertEquals;
    55
    6 import java.io.File;
    76import java.net.MalformedURLException;
     7import java.net.URL;
    88
    99import org.junit.BeforeClass;
    1010import org.junit.Test;
    1111import org.openstreetmap.josm.JOSMFixture;
    12 import org.openstreetmap.josm.TestUtils;
    1312import org.openstreetmap.josm.data.coor.LatLon;
    1413import org.openstreetmap.josm.data.gpx.Extensions;
     
    1615import org.openstreetmap.josm.data.gpx.GpxData;
    1716import org.openstreetmap.josm.data.gpx.WayPoint;
    18 import org.openstreetmap.josm.tools.AudioPlayer;
    1917
    2018/**
     
    3735    @Test
    3836    public void testAudioMarker() throws MalformedURLException {
     37        URL url = new URL("file://something.wav");
    3938        AudioMarker marker = new AudioMarker(
    4039                LatLon.ZERO,
    4140                null,
    42                 new File(TestUtils.getRegressionDataFile(6851, "20111003_121226.wav")).toURI().toURL(),
     41                url,
    4342                new MarkerLayer(new GpxData(), null, null, null),
    4443                1d, 2d);
    45         try {
    46             marker.actionPerformed(null);
    47         } finally {
    48             AudioPlayer.reset();
    49         }
     44        assertEquals(url, marker.url());
    5045        assertEquals("2", marker.getText());
    5146        WayPoint wpt = marker.convertToWayPoint();
Note: See TracChangeset for help on using the changeset viewer.