summaryrefslogtreecommitdiffstats
path: root/portal-BE/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'portal-BE/src/test/java')
-rw-r--r--portal-BE/src/test/java/org/onap/portal/controller/UserControllerTest.java4
-rw-r--r--portal-BE/src/test/java/org/onap/portal/controller/WidgetMSControllerTest.java6
-rw-r--r--portal-BE/src/test/java/org/onap/portal/controller/WidgetsCatalogControllerTest.java4
3 files changed, 7 insertions, 7 deletions
diff --git a/portal-BE/src/test/java/org/onap/portal/controller/UserControllerTest.java b/portal-BE/src/test/java/org/onap/portal/controller/UserControllerTest.java
index 7c654ad4..8e5b1aa4 100644
--- a/portal-BE/src/test/java/org/onap/portal/controller/UserControllerTest.java
+++ b/portal-BE/src/test/java/org/onap/portal/controller/UserControllerTest.java
@@ -67,7 +67,7 @@ class UserControllerTest {
private final UserController userController;
@Autowired
- UserControllerTest(final FnUserService userService, final UserController userController) {
+ UserControllerTest(FnUserService userService, UserController userController) {
this.userService = userService;
this.userController = userController;
}
@@ -140,4 +140,4 @@ class UserControllerTest {
assertEquals(expected, actual);
assertNotEquals(oldPassword, newPassword);
}
-} \ No newline at end of file
+}
diff --git a/portal-BE/src/test/java/org/onap/portal/controller/WidgetMSControllerTest.java b/portal-BE/src/test/java/org/onap/portal/controller/WidgetMSControllerTest.java
index b31fe55c..5a30ac0c 100644
--- a/portal-BE/src/test/java/org/onap/portal/controller/WidgetMSControllerTest.java
+++ b/portal-BE/src/test/java/org/onap/portal/controller/WidgetMSControllerTest.java
@@ -70,9 +70,9 @@ class WidgetMSControllerTest {
@Test
void getServiceLocation() {
PortalRestResponse<String> expected = new PortalRestResponse<>();
- expected.setMessage("Error!");
- expected.setResponse("Couldn't get the service location");
- expected.setStatus(PortalRestStatusEnum.ERROR);
+ expected.setMessage("Success!");
+ expected.setResponse("localhost:null");
+ expected.setStatus(PortalRestStatusEnum.OK);
PortalRestResponse<String> actual = widgetMSController.getServiceLocation(request, response, "portal");
assertEquals(expected.getMessage(), actual.getMessage());
assertEquals(expected.getResponse(), actual.getResponse());
diff --git a/portal-BE/src/test/java/org/onap/portal/controller/WidgetsCatalogControllerTest.java b/portal-BE/src/test/java/org/onap/portal/controller/WidgetsCatalogControllerTest.java
index 65525dbe..3c137375 100644
--- a/portal-BE/src/test/java/org/onap/portal/controller/WidgetsCatalogControllerTest.java
+++ b/portal-BE/src/test/java/org/onap/portal/controller/WidgetsCatalogControllerTest.java
@@ -254,7 +254,7 @@ public class WidgetsCatalogControllerTest {
@Test
public void getUploadFlag() {
- String expected = "";
+ String expected = "true";
String actual = widgetsCatalogController.getUploadFlag();
assertEquals(expected, actual);
@@ -271,4 +271,4 @@ public class WidgetsCatalogControllerTest {
.guest(false)
.build();
}
-} \ No newline at end of file
+}