Migrate to JUnit5
This commit is contained in:
@ -35,8 +35,13 @@
|
||||
<artifactId>event-queue</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-api</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-engine</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
@ -22,13 +22,15 @@
|
||||
*/
|
||||
|
||||
package com.iluwatar.event.queue;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.io.IOException;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import javax.sound.sampled.UnsupportedAudioFileException;
|
||||
import java.io.IOException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Testing the Audio service of the Queue
|
||||
@ -53,7 +55,7 @@ public class AudioTest {
|
||||
// test that service is finished
|
||||
assertFalse(!Audio.isServiceRunning());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test here that the Queue
|
||||
* @throws UnsupportedAudioFileException when the audio file is not supported
|
||||
|
Reference in New Issue
Block a user