Changeset 18853 in josm for trunk/test/unit/org/openstreetmap/josm/io/audio/AudioPlayerTest.java
- Timestamp:
- 2023-10-04T00:03:40+02:00 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/audio/AudioPlayerTest.java
r17275 r18853 3 3 4 4 import static org.junit.jupiter.api.Assertions.assertFalse; 5 import static org.junit.jupiter.api.Assertions.assertTimeout; 5 6 import static org.junit.jupiter.api.Assertions.assertTrue; 6 import static org.junit.jupiter.api.Assertions.assertTimeout;7 7 8 8 import java.io.File; 9 import java.net.MalformedURLException;10 9 import java.net.URL; 11 10 import java.time.Duration; 12 11 13 import org.junit.jupiter.api.BeforeAll;14 12 import org.junit.jupiter.api.Disabled; 15 13 import org.junit.jupiter.api.Test; 16 import org.openstreetmap.josm.JOSMFixture;17 14 import org.openstreetmap.josm.TestUtils; 18 15 import org.openstreetmap.josm.tools.Stopwatch; … … 28 25 29 26 /** 30 * Setup test.31 */32 @BeforeAll33 public static void setUp() {34 JOSMFixture.createUnitTestFixture().init();35 }36 37 /**38 27 * Test method for {@code AudioPlayer#play(URL)} 39 * @throws Exception audio fault exception, e.g. can't open stream, unhandleable audio format40 * @throws MalformedURLException wrong URL41 28 */ 42 29 @Test 43 void testPlay() throws MalformedURLException, Exception{30 void testPlay() { 44 31 assertTimeout(Duration.ofMillis(4*MAX_DURATION), () -> { 45 32 File wav1 = new File(TestUtils.getRegressionDataFile(6851, "20111003_121226.wav"));
Note:
See TracChangeset
for help on using the changeset viewer.