Commit 03559a71 authored by Nikolaos Kyriakoulis's avatar Nikolaos Kyriakoulis
Browse files

Removed duplicate 'tmf-api' prefix in the unit tests

parent 8fe94fd5
Loading
Loading
Loading
Loading
Loading
+3 −3
Changes for src/test/java/org/etsi/osl/services/api/metrics/GerenalMetricsApiControllerTest.java: 3 added lines, 3 removed lines.
Original line number Original line Diff line number Diff line
@@ -75,7 +75,7 @@ public class GerenalMetricsApiControllerTest {
        individualCreate.setFullName("John Doe");
        individualCreate.setFullName("John Doe");
        individualRepoService.addIndividual(individualCreate);
        individualRepoService.addIndividual(individualCreate);


        String response = mvc.perform(MockMvcRequestBuilders.get("/tmf-api/metrics/registeredIndividuals" )
        String response = mvc.perform(MockMvcRequestBuilders.get("/metrics/registeredIndividuals" )
                        .contentType(MediaType.APPLICATION_JSON))
                        .contentType(MediaType.APPLICATION_JSON))
                .andExpect(status().isOk() )
                .andExpect(status().isOk() )
                .andReturn().getResponse().getContentAsString();
                .andReturn().getResponse().getContentAsString();
@@ -89,7 +89,7 @@ public class GerenalMetricsApiControllerTest {
    @Test
    @Test
    public void testGetPublishedServiceSpecifications() throws Exception {
    public void testGetPublishedServiceSpecifications() throws Exception {


        String response = mvc.perform(MockMvcRequestBuilders.get("/tmf-api/metrics/publishedServiceSpecifications" )
        String response = mvc.perform(MockMvcRequestBuilders.get("/metrics/publishedServiceSpecifications" )
                        .contentType(MediaType.APPLICATION_JSON))
                        .contentType(MediaType.APPLICATION_JSON))
                .andExpect(status().isOk() )
                .andExpect(status().isOk() )
                .andReturn().getResponse().getContentAsString();
                .andReturn().getResponse().getContentAsString();
@@ -112,7 +112,7 @@ public class GerenalMetricsApiControllerTest {
    @Test
    @Test
    public void testGetRegisteredResourceSpecifications() throws Exception {
    public void testGetRegisteredResourceSpecifications() throws Exception {


        String response = mvc.perform(MockMvcRequestBuilders.get("/tmf-api/metrics/registeredResourceSpecifications" )
        String response = mvc.perform(MockMvcRequestBuilders.get("/metrics/registeredResourceSpecifications" )
                        .contentType(MediaType.APPLICATION_JSON))
                        .contentType(MediaType.APPLICATION_JSON))
                .andExpect(status().isOk() )
                .andExpect(status().isOk() )
                .andReturn().getResponse().getContentAsString();
                .andReturn().getResponse().getContentAsString();