diff --git a/pom.xml b/pom.xml
index 323aef3..6038156 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.springframework.boot
spring-boot-starter-parent
- 2.3.5.RELEASE
+ 2.7.12
@@ -18,9 +18,9 @@
UTF-8
UTF-8
- 1.8
+ 21
9.0.43
- 5.4.4
+ 5.7.8
@@ -43,7 +43,7 @@
org.springdoc
springdoc-openapi-ui
- 1.2.30
+ 1.6.14
@@ -54,6 +54,15 @@
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.11.0
+
+ 21
+
+
org.springframework.boot
spring-boot-maven-plugin
diff --git a/src/test/java/com/devsecops/NumericApplicationTests.java b/src/test/java/com/devsecops/NumericApplicationTests.java
index 71397a2..5458027 100644
--- a/src/test/java/com/devsecops/NumericApplicationTests.java
+++ b/src/test/java/com/devsecops/NumericApplicationTests.java
@@ -1,7 +1,6 @@
package com.devsecops;
-
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
@@ -22,11 +21,11 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
//import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.springframework.test.context.junit4.SpringRunner;
+import org.junit.jupiter.api.extension.ExtendWith;
+import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
-@RunWith(SpringRunner.class)
+@ExtendWith(SpringExtension.class)
@SpringBootTest
@AutoConfigureMockMvc
public class NumericApplicationTests {
@@ -45,14 +44,11 @@ public void greaterThanFiftyMessage() throws Exception {
this.mockMvc.perform(get("/compare/51")).andDo(print()).andExpect(status().isOk())
.andExpect(content().string("Greater than 50"));
}
-
-
-@Test
+ @Test
public void welcomeMessage() throws Exception {
this.mockMvc.perform(get("/")).andDo(print()).andExpect(status().isOk())
.andExpect(content().string("Kubernetes DevSecOps"));
}
-
}
\ No newline at end of file