From e6dab5c8cd0a1a1689ba094548c19e59ccba6fba Mon Sep 17 00:00:00 2001 From: Zoltan Micskei Date: Tue, 26 Mar 2019 09:54:56 +0100 Subject: [PATCH] Move to JUnit 5 --- pom.xml | 12 +++++++++--- src/test/java/hu/bme/mit/spaceship/GT4500Test.java | 10 +++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index e1c7286..8db6b6e 100644 --- a/pom.xml +++ b/pom.xml @@ -11,9 +11,9 @@ - junit - junit - 4.12 + org.junit.jupiter + junit-jupiter + 5.4.1 test @@ -35,6 +35,12 @@ 1.8 + + + + maven-surefire-plugin + 2.22.1 + diff --git a/src/test/java/hu/bme/mit/spaceship/GT4500Test.java b/src/test/java/hu/bme/mit/spaceship/GT4500Test.java index 90bdc6f..dd9ae6e 100644 --- a/src/test/java/hu/bme/mit/spaceship/GT4500Test.java +++ b/src/test/java/hu/bme/mit/spaceship/GT4500Test.java @@ -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(); }