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

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