diff --git a/pom.xml b/pom.xml
index 109df82..509222f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -121,13 +121,6 @@
test
-
- org.junit.jupiter
- junit-jupiter
- 5.9.3
- test
-
-
@@ -142,6 +135,19 @@
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.1.0
+
+
+ **/CalculatorClientTests.java
+ **/CalculatorControllerTest.java
+
+
+
+
org.springframework.boot
spring-boot-maven-plugin
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 555b239..c3529e5 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -9,4 +9,4 @@ spring.h2.console.path=/h2-console
spring.main.banner-mode=off
logging.level.org.springframework=OFF
-logging.level.root=OFF
\ No newline at end of file
+logging.level.root=OFF
diff --git a/src/test/java/com/gmgauthier/client/requests/CalculatorClientTests.java b/src/test/java/com/gmgauthier/client/requests/CalculatorClientTests.java
index bd123a5..bcc8894 100644
--- a/src/test/java/com/gmgauthier/client/requests/CalculatorClientTests.java
+++ b/src/test/java/com/gmgauthier/client/requests/CalculatorClientTests.java
@@ -7,7 +7,6 @@ import com.hackerrank.test.utility.OrderedTestRunner;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
-import org.junit.jupiter.api.Assertions;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
@@ -16,6 +15,7 @@ import java.math.BigDecimal;
import java.net.URISyntaxException;
import static com.github.tomakehurst.wiremock.client.WireMock.*;
+import static org.junit.Assert.assertEquals;
@SpringBootTest
@RunWith(OrderedTestRunner.class)
@@ -41,7 +41,7 @@ public class CalculatorClientTests {
.withBody("{\"sum\": 4}")));
CalculatorClient calc = new CalculatorClient();
Integer resp = calc.getSum(2,2);//two plus two
- Assertions.assertEquals(4, resp.intValue());
+ assertEquals(4, resp.intValue());
}
@Test
@@ -55,7 +55,7 @@ public class CalculatorClientTests {
.withBody("{\"difference\": 4}")));
CalculatorClient calc = new CalculatorClient();
Integer resp = calc.getDifference(6,2); //six minus two
- Assertions.assertEquals(4, resp.intValue());
+ assertEquals(4, resp.intValue());
}
@Test
@@ -69,7 +69,7 @@ public class CalculatorClientTests {
.withBody("{\"product\": 4}")));
CalculatorClient calc = new CalculatorClient();
Integer resp = calc.getProduct(2,2);//two times two
- Assertions.assertEquals(4, resp.intValue());
+ assertEquals(4, resp.intValue());
}
@Test
@@ -83,6 +83,6 @@ public class CalculatorClientTests {
.withBody("{\"quotient\": 4}")));
CalculatorClient calc = new CalculatorClient();
BigDecimal resp = calc.getQuotient(8,2);//eight divided by two
- Assertions.assertEquals(BigDecimal.valueOf(4), resp);
+ assertEquals(BigDecimal.valueOf(4), resp);
}
}