Example #1
0
  @SuppressWarnings("deprecation")
  @Test
  public void testPlayAndStopLoop() {
    playWave = new PlayWave("sound/eatFruit.wav");
    playWave.setLoop(true);
    playWave.start();

    playWave.setLoop(false);
    playWave.stop();
  }
Example #2
0
 @Test
 public void testNotFoundFile() throws UnsupportedAudioFileException {
   playWave = new PlayWave("");
   playWave.run();
 }
Example #3
0
 @Test
 public void testRun() {
   playWave = new PlayWave("sound/eatFruit.wav");
   playWave.run();
 }
Example #4
0
 @Test
 public void testPlayIsLoop() {
   playWave = new PlayWave("sound/eatFruit.wav");
   playWave.setLoop(true);
   playWave.start();
 }