X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=dashboard%2Fwebapp-backend%2Fsrc%2Ftest%2Fjava%2Forg%2Foransc%2Fric%2Fportal%2Fdashboard%2Fcontroller%2FPortalRestCentralServiceTest.java;fp=dashboard%2Fwebapp-backend%2Fsrc%2Ftest%2Fjava%2Forg%2Foransc%2Fric%2Fportal%2Fdashboard%2Fcontroller%2FPortalRestCentralServiceTest.java;h=4446c43374aef2df23743f204b98360153844591;hb=1ed271f32c4112736fb528aa0cc228629d2248a6;hp=48aa0844af64856890b3c53970b8c99b0408d937;hpb=0defe5112010238bffdbc52199b35163cb0999ee;p=portal%2Fric-dashboard.git diff --git a/dashboard/webapp-backend/src/test/java/org/oransc/ric/portal/dashboard/controller/PortalRestCentralServiceTest.java b/dashboard/webapp-backend/src/test/java/org/oransc/ric/portal/dashboard/controller/PortalRestCentralServiceTest.java index 48aa0844..4446c433 100644 --- a/dashboard/webapp-backend/src/test/java/org/oransc/ric/portal/dashboard/controller/PortalRestCentralServiceTest.java +++ b/dashboard/webapp-backend/src/test/java/org/oransc/ric/portal/dashboard/controller/PortalRestCentralServiceTest.java @@ -54,7 +54,7 @@ public class PortalRestCentralServiceTest extends AbstractControllerTest { public void getAnalyticsTest() { // paths are hardcoded here exactly like the EPSDK-FW library :( URI uri = buildUri(null, PortalApiConstants.API_PREFIX, "/analytics"); - logger.info("Invoking {}", uri); + logger.info("getAnalyticsTest invoking {}", uri); ResponseEntity response = restTemplate.exchange(uri, HttpMethod.GET, null, String.class); // No Portal is available so this always fails Assertions.assertTrue(response.getStatusCode().is4xxClientError()); @@ -64,7 +64,7 @@ public class PortalRestCentralServiceTest extends AbstractControllerTest { public void getErrorPageTest() { // Send unauthorized request URI uri = buildUri(null, "/favicon.ico"); - logger.info("Invoking {}", uri); + logger.info("getErrorPageTest invoking {}", uri); ResponseEntity response = restTemplate.exchange(uri, HttpMethod.GET, null, String.class); Assertions.assertTrue(response.getStatusCode().is4xxClientError()); Assertions.assertTrue(response.getBody().contains("Static error page")); @@ -100,6 +100,7 @@ public class PortalRestCentralServiceTest extends AbstractControllerTest { HttpEntity requestEntity = getEntityWithAuthHeaders(createEcompUser(loginId)); ResponseEntity response = restTemplate.exchange(create, HttpMethod.POST, requestEntity, String.class); logger.info("createUserTest response {}", response); + Assertions.assertNotNull(response); Assertions.assertTrue(response.getStatusCode().is2xxSuccessful()); } @@ -120,6 +121,7 @@ public class PortalRestCentralServiceTest extends AbstractControllerTest { logger.info("updateUserTest invoking {}", update); response = restTemplate.exchange(update, HttpMethod.POST, requestEntity, String.class); logger.info("updateUserTest response {}", response); + Assertions.assertNotNull(response); Assertions.assertTrue(response.getStatusCode().is2xxSuccessful()); }