Skip to content

Commit

Permalink
Move to JUnit 5
Browse files Browse the repository at this point in the history
  • Loading branch information
micskeiz committed Mar 26, 2019
1 parent 175b1d6 commit e6dab5c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
12 changes: 9 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.4.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -35,6 +35,12 @@
<target>1.8</target>
</configuration>
</plugin>

<!-- JUnit 5 requires Surefire version 2.22.1 or higher -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
</plugin>
</plugins>
</build>
</project>
10 changes: 5 additions & 5 deletions src/test/java/hu/bme/mit/spaceship/GT4500Test.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package hu.bme.mit.spaceship;

import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.BeforeEach;

import org.junit.Before;
import org.junit.Test;
import static org.mockito.Mockito.*;

public class GT4500Test {

private GT4500 ship;

@Before
@BeforeEach
public void init(){
this.ship = new GT4500();
}
Expand Down

0 comments on commit e6dab5c

Please sign in to comment.