diff options
author | Manoop Talasila <talasila@research.att.com> | 2019-07-09 15:24:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-09 15:24:10 +0000 |
commit | 61a29dbca11ac31c40ba6022a1711f4074814df3 (patch) | |
tree | 56238bdda2dbc45d21a10a95d1b37a2573a359ff /ecomp-portal-BE-common/src/test | |
parent | a1db0d8fc1a98c8e22879059400d218402b82925 (diff) | |
parent | d86b4b4fc44fd3f4b24c09d784889b8b71d540e4 (diff) |
Merge "CommonWidget class DB constraints"
Diffstat (limited to 'ecomp-portal-BE-common/src/test')
-rw-r--r-- | ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/controller/DashboardSearchResultControllerTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/controller/DashboardSearchResultControllerTest.java b/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/controller/DashboardSearchResultControllerTest.java index 34667853..c905e8d1 100644 --- a/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/controller/DashboardSearchResultControllerTest.java +++ b/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/controller/DashboardSearchResultControllerTest.java @@ -182,8 +182,8 @@ public class DashboardSearchResultControllerTest { @Test public void saveWidgetDataBulkIfCategoryNullTest() { PortalRestResponse<String> ecpectedPortalRestResponse = new PortalRestResponse<>(); - ecpectedPortalRestResponse.setMessage("java.text.ParseException: Unparseable date: \"1\""); - ecpectedPortalRestResponse.setResponse(null); + ecpectedPortalRestResponse.setMessage("ERROR"); + ecpectedPortalRestResponse.setResponse("Category is not valid"); ecpectedPortalRestResponse.setStatus(PortalRestStatusEnum.ERROR); CommonWidgetMeta commonWidgetMeta = new CommonWidgetMeta(); @@ -280,8 +280,8 @@ public class DashboardSearchResultControllerTest { @Test public void saveWidgetDataDateErrorTest() { PortalRestResponse<String> ecpectedPortalRestResponse = new PortalRestResponse<>(); - ecpectedPortalRestResponse.setMessage("java.text.ParseException: Unparseable date: \"1\""); - ecpectedPortalRestResponse.setResponse(null); + ecpectedPortalRestResponse.setMessage("ERROR"); + ecpectedPortalRestResponse.setResponse("Category is not valid"); ecpectedPortalRestResponse.setStatus(PortalRestStatusEnum.ERROR); CommonWidget commonWidget = new CommonWidget(); commonWidget.setId((long) 1); |