@SuppressWarnings("deprecation") @Test public void testPlayAndStopLoop() { playWave = new PlayWave("sound/eatFruit.wav"); playWave.setLoop(true); playWave.start(); playWave.setLoop(false); playWave.stop(); }
@Test public void testNotFoundFile() throws UnsupportedAudioFileException { playWave = new PlayWave(""); playWave.run(); }
@Test public void testRun() { playWave = new PlayWave("sound/eatFruit.wav"); playWave.run(); }
@Test public void testPlayIsLoop() { playWave = new PlayWave("sound/eatFruit.wav"); playWave.setLoop(true); playWave.start(); }