Adding API version in rest endpoints
[nonrtric.git] / test / servicestub / src / test / java / org / oran / helloworld / rest / HelloWorldControllerTest.java
index 0d29c8b..36f335f 100644 (file)
@@ -43,7 +43,7 @@ public class HelloWorldControllerTest {
     public void testHelloWorldEndpoint() throws Exception {\r
         when(helloWorldController.helloWorld()).thenReturn("Hello World from service stub\n");\r
 \r
-        mockMvc.perform(get("/helloworld"))\r
+        mockMvc.perform(get("/v1/helloworld"))\r
             .andExpect(status().isOk())\r
             .andExpect(content().string("Hello World from service stub\n"));\r
     }\r
@@ -52,7 +52,7 @@ public class HelloWorldControllerTest {
     public void testHelloWorldSmeEndpoint() throws Exception {\r
         when(helloWorldController.helloWorldSme()).thenReturn("Hello World from SME\n");\r
 \r
-        mockMvc.perform(get("/helloworld/sme"))\r
+        mockMvc.perform(get("/v1/helloworld/sme"))\r
             .andExpect(status().isOk())\r
             .andExpect(content().string("Hello World from SME\n"));\r
     }\r