summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core')
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/dao/ProfileDaoImplTest.java1
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/AppTest.java123
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/AuditLogTest.java73
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/BroadcastMessageTest.java101
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/FnMenuTest.java98
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LoginBeanTest.java83
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LookupTest.java73
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LuCountryTest.java77
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LuStateTest.java65
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LuTimeZoneTest.java68
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/MenuDataTest.java72
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/MenuTest.java84
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/ProfileTest.java70
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/RoleFunctionTest.java69
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/RoleTest.java111
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UrlsAccessibleKeyTest.java77
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UrlsAccessibleTest.java75
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UserAppIdTest.java87
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UserAppTest.java89
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UserTest.java216
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/sessionmgt/TimeoutVOTest.java3
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/restful/client/PortalRestClientBaseTest.java1
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/restful/client/SharedContextRestClientTest.java1
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/DataAccessServiceImplTest.java2
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UrlAccessImplTest.java2
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserProfileServiceImplTest.java7
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserServiceCentalizedImplTest.java1
27 files changed, 2 insertions, 1727 deletions
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/dao/ProfileDaoImplTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/dao/ProfileDaoImplTest.java
index 3de08cb4..94230185 100644
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/dao/ProfileDaoImplTest.java
+++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/dao/ProfileDaoImplTest.java
@@ -43,7 +43,6 @@ import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
-import org.hibernate.criterion.Restrictions;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/AppTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/AppTest.java
deleted file mode 100644
index 8deaf877..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/AppTest.java
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class AppTest {
-
- public App mockApp() {
- App app = new App();
- app.setName("testApp");
- app.setImageUrl("testmageUrl");
- app.setDescription("testdescription");
- app.setNotes("testNotes");
- app.setUrl("testUrl");
- app.setAlternateUrl("testAlternateUrl");
- app.setRestEndpoint("testRestEndpoint");
- app.setMlAppName("testMlAppName");
- app.setMlAppAdminId("testMlAppAdminId");
- app.setMotsId("testMotsId");
- app.setAppPassword("testAppPassword");
- app.setOpen("testOpen");
- app.setEnabled("testEnabled");
- app.setThumbnail(null);
- app.setUsername("testUsername");
- app.setUebKey("testUebKey");
- app.setUebSecret("testUebSecret");
- app.setUebTopicName("testuebTopicName");
- return app;
- }
-
- @Test
- public void appTest()
- {
- App mockApp = mockApp();
- App app = new App();
- app.setName("testApp");
- app.setImageUrl("testmageUrl");
- app.setDescription("testdescription");
- app.setNotes("testNotes");
- app.setUrl("testUrl");
- app.setAlternateUrl("testAlternateUrl");
- app.setRestEndpoint("testRestEndpoint");
- app.setMlAppName("testMlAppName");
- app.setMlAppAdminId("testMlAppAdminId");
- app.setMotsId("testMotsId");
- app.setAppPassword("testAppPassword");
- app.setOpen("testOpen");
- app.setEnabled("testEnabled");
- app.setThumbnail(null);
- app.setUsername("testUsername");
- app.setUebKey("testUebKey");
- app.setUebSecret("testUebSecret");
- app.setUebTopicName("testuebTopicName");
-
- assertEquals(app.getName(), mockApp.getName());
- assertEquals(app.getImageUrl(), mockApp.getImageUrl());
- assertEquals(app.getDescription(), mockApp.getDescription());
- assertEquals(app.getNotes(), mockApp.getNotes());
- assertEquals(app.getUrl(), mockApp.getUrl());
- assertEquals(app.getAlternateUrl(), mockApp.getAlternateUrl());
- assertEquals(app.getRestEndpoint(), mockApp.getRestEndpoint());
- assertEquals(app.getMlAppName(), mockApp.getMlAppName());
- assertEquals(app.getMlAppAdminId(), mockApp.getMlAppAdminId());
- assertEquals(app.getMotsId(), mockApp.getMotsId());
- assertEquals(app.getOpen(), mockApp.getOpen());
- assertEquals(app.getEnabled(), mockApp.getEnabled());
- assertEquals(app.getThumbnail(), mockApp.getThumbnail());
- assertEquals(app.getUsername(), mockApp.getUsername());
- assertEquals(app.getUebKey(), mockApp.getUebKey());
- assertEquals(app.getUebSecret(), mockApp.getUebSecret());
- assertEquals(app.getUebTopicName(), mockApp.getUebTopicName());
- assertEquals(app.getAppPassword(), mockApp.getAppPassword());
-
- }
-
- @Test
- public void compareToTest()
- {
- App app = new App();
- app.setId((long) 1);
- int result = app.compareTo(app);
- assertEquals(result, 0);
- }
-
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/AuditLogTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/AuditLogTest.java
deleted file mode 100644
index 8b43053e..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/AuditLogTest.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class AuditLogTest {
-
- public AuditLog mockAuditLog()
- {
- AuditLog auditLog = new AuditLog();
- auditLog.setActivityCode("activityCode");
- auditLog.setAffectedRecordId("affectedRecordId");
- auditLog.setComments("comments");
- auditLog.setAuditDate(null);
- auditLog.setUserId((long) 1);
- return auditLog;
- }
-
- @Test
- public void auditLogTest()
- {
- AuditLog mockAuditLog = mockAuditLog();
- AuditLog auditLog = new AuditLog();
- auditLog.setActivityCode("activityCode");
- auditLog.setAffectedRecordId("affectedRecordId");
- auditLog.setComments("comments");
- auditLog.setAuditDate(null);
- auditLog.setUserId((long) 1);
- assertEquals(auditLog.getActivityCode(), mockAuditLog.getActivityCode());
- assertEquals(auditLog.getAffectedRecordId(), mockAuditLog.getAffectedRecordId());
- assertEquals(auditLog.getComments(), mockAuditLog.getComments());
- assertEquals(auditLog.getAuditDate(), mockAuditLog.getAuditDate());
- assertEquals(auditLog.getUserId(), mockAuditLog.getUserId());
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/BroadcastMessageTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/BroadcastMessageTest.java
deleted file mode 100644
index 6174a413..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/BroadcastMessageTest.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class BroadcastMessageTest {
-
- public BroadcastMessage mockBroadcastMessage() {
- BroadcastMessage broadcastMessage = new BroadcastMessage();
- broadcastMessage.setMessageText("messageText");
- broadcastMessage.setLocationId(1);
- broadcastMessage.setStartDate(null);
- broadcastMessage.setEndDate(null);
- broadcastMessage.setSortOrder(1);
- broadcastMessage.setActive(false);
- broadcastMessage.setSiteCd("siteCd");
- return broadcastMessage;
- }
-
- @Test
- public void broadcastMessageTest() {
- BroadcastMessage mockBroadcastMessage = mockBroadcastMessage();
- BroadcastMessage broadcastMessage = new BroadcastMessage();
- broadcastMessage.setMessageText("messageText");
- broadcastMessage.setLocationId(1);
- broadcastMessage.setStartDate(null);
- broadcastMessage.setEndDate(null);
- broadcastMessage.setSortOrder(1);
- broadcastMessage.setActive(false);
- broadcastMessage.setSiteCd("siteCd");
- assertEquals(broadcastMessage.getMessageText(), mockBroadcastMessage.getMessageText());
- assertEquals(broadcastMessage.getLocationId(), mockBroadcastMessage.getLocationId());
- assertEquals(broadcastMessage.getStartDate(), mockBroadcastMessage.getStartDate());
- assertEquals(broadcastMessage.getEndDate(), mockBroadcastMessage.getEndDate());
- assertEquals(broadcastMessage.getSortOrder(), mockBroadcastMessage.getSortOrder());
- assertEquals(broadcastMessage.getActive(), mockBroadcastMessage.getActive());
- assertEquals(broadcastMessage.getSiteCd(), mockBroadcastMessage.getSiteCd());
- }
-
- @Test
- public void compareToTest()
- {
- BroadcastMessage broadcastMessage = new BroadcastMessage();
- broadcastMessage.setLocationId(1);
- broadcastMessage.setSortOrder(1);
- broadcastMessage.setId((long) 2);
- int result = broadcastMessage.compareTo(broadcastMessage);
- assertEquals(result, 0);
- }
-
- @Test
- public void compareToDiffTest()
- {
- BroadcastMessage broadcastMessage = new BroadcastMessage();
- BroadcastMessage broadcastMessage1 = new BroadcastMessage();
- broadcastMessage.setLocationId(0);
- broadcastMessage1.setLocationId(1);
- broadcastMessage.setSortOrder(1);
- broadcastMessage.setId((long) 2);
- int result = broadcastMessage1.compareTo(broadcastMessage);
- assertEquals(result, 1);
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/FnMenuTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/FnMenuTest.java
deleted file mode 100644
index 0c57a2d4..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/FnMenuTest.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class FnMenuTest {
-
- public FnMenu mockFnMenuTest() {
- FnMenu fnMenu = new FnMenu();
- fnMenu.setMenuId(1);
- fnMenu.setLabel("label");
- fnMenu.setParentId(1);
- fnMenu.setAction("action");
- fnMenu.setFunctionCd("functionCd");
- fnMenu.setSortOrder(1);
- fnMenu.setServlet("servlet");
- fnMenu.setQueryString("queryString");
- fnMenu.setExternalUrl("externalUrl");
- fnMenu.setTarget("target");
- fnMenu.setActive("active");
- fnMenu.setSeparator("separator");
- fnMenu.setImageSrc("imageSrc");
- fnMenu.setMenuSetCode("menuSetCode");
- return fnMenu;
- }
-
- @Test
- public void fnMenuTest() {
- FnMenu mockFnMenu = mockFnMenuTest();
- FnMenu fnMenu = new FnMenu();
- fnMenu.setMenuId(1);
- fnMenu.setLabel("label");
- fnMenu.setParentId(1);
- fnMenu.setAction("action");
- fnMenu.setFunctionCd("functionCd");
- fnMenu.setSortOrder(1);
- fnMenu.setServlet("servlet");
- fnMenu.setQueryString("queryString");
- fnMenu.setExternalUrl("externalUrl");
- fnMenu.setTarget("target");
- fnMenu.setActive("active");
- fnMenu.setSeparator("separator");
- fnMenu.setImageSrc("imageSrc");
- fnMenu.setMenuSetCode("menuSetCode");
- assertEquals(fnMenu.getMenuId(), mockFnMenu.getMenuId());
- assertEquals(fnMenu.getLabel(), mockFnMenu.getLabel());
- assertEquals(fnMenu.getParentId(), mockFnMenu.getParentId());
- assertEquals(fnMenu.getAction(), mockFnMenu.getAction());
- assertEquals(fnMenu.getSortOrder(), mockFnMenu.getSortOrder());
- assertEquals(fnMenu.getServlet(), mockFnMenu.getServlet());
- assertEquals(fnMenu.getQueryString(), mockFnMenu.getQueryString());
- assertEquals(fnMenu.getExternalUrl(), mockFnMenu.getExternalUrl());
- assertEquals(fnMenu.getTarget(), mockFnMenu.getTarget());
- assertEquals(fnMenu.getActive(), mockFnMenu.getActive());
- assertEquals(fnMenu.getSeparator(), mockFnMenu.getSeparator());
- assertEquals(fnMenu.getImageSrc(), mockFnMenu.getImageSrc());
- assertEquals(fnMenu.getMenuSetCode(), mockFnMenu.getMenuSetCode());
- assertEquals(fnMenu.getFunctionCd(), mockFnMenu.getFunctionCd());
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LoginBeanTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LoginBeanTest.java
deleted file mode 100644
index 7d4fbef2..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LoginBeanTest.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class LoginBeanTest {
-
- public LoginBean mockLoginBean() {
- LoginBean loginBean = new LoginBean();
- loginBean.setLoginId("loginId");
- loginBean.setLoginPwd("loginPwd");
- loginBean.setHrid("hrid");
- loginBean.setOrgUserId("orgUserId");
- loginBean.setSiteAccess("siteAccess");
- loginBean.setLoginErrorMessage("loginErrorMessage");
- loginBean.setUser(null);
- loginBean.setMenu(null);
- loginBean.setBusinessDirectMenu(null);
- return loginBean;
- }
-
- @Test
- public void loginBeanTest() {
- LoginBean mockLoginBean = mockLoginBean();
- LoginBean loginBean = new LoginBean();
- loginBean.setLoginId("loginId");
- loginBean.setLoginPwd("loginPwd");
- loginBean.setHrid("hrid");
- loginBean.setOrgUserId("orgUserId");
- loginBean.setSiteAccess("siteAccess");
- loginBean.setLoginErrorMessage("loginErrorMessage");
- loginBean.setUser(null);
- loginBean.setMenu(null);
- loginBean.setBusinessDirectMenu(null);
- assertEquals(loginBean.getLoginId(), mockLoginBean.getLoginId());
- assertEquals(loginBean.getLoginPwd(), mockLoginBean.getLoginPwd());
- assertEquals(loginBean.getHrid(), mockLoginBean.getHrid());
- assertEquals(loginBean.getOrgUserId(), mockLoginBean.getOrgUserId());
- assertEquals(loginBean.getSiteAccess(), mockLoginBean.getSiteAccess());
- assertEquals(loginBean.getLoginErrorMessage(), mockLoginBean.getLoginErrorMessage());
- assertEquals(loginBean.getUser(), mockLoginBean.getUser());
- assertEquals(loginBean.getMenu(), mockLoginBean.getMenu());
- assertEquals(loginBean.getBusinessDirectMenu(), mockLoginBean.getBusinessDirectMenu());
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LookupTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LookupTest.java
deleted file mode 100644
index 9dcd43f7..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LookupTest.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-import org.onap.portalsdk.core.domain.support.NameValueId;
-
-public class LookupTest {
-
- public Lookup mockLookUp() {
- Lookup lookup = new Lookup();
- NameValueId nameValueId = new NameValueId();
- nameValueId.setLab("label");
- nameValueId.setVal("value");
- lookup.setLabel(nameValueId.getLab());
- lookup.setValue(nameValueId.getVal());
- lookup.setNameValueId(nameValueId);
- return lookup;
- }
-
- @Test
- public void lookupTest() {
- Lookup lookup = mockLookUp();
- Lookup lookup1 = new Lookup("label", "value");
- assertEquals(lookup.getLabel(), "label");
- assertEquals(lookup.getValue(), "value");
- assertEquals(lookup, lookup1);
- assertNotNull(lookup.hashCode());
- assertTrue(lookup.equals(lookup1));
- Lookup lookup2 = null;
- assertFalse(lookup.equals(lookup2));
- NameValueId nameValueId = new NameValueId();
- assertFalse(lookup.equals(nameValueId));
- assertEquals(lookup.getNameValueId().getLab(), lookup1.getNameValueId().getLab());
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LuCountryTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LuCountryTest.java
deleted file mode 100644
index a5afc07d..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LuCountryTest.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.assertEquals;
-
-import org.junit.Test;
-
-public class LuCountryTest {
-
- public LuCountry mockLuCountry() {
- LuCountry luCountry = new LuCountry();
- luCountry.setAbbr("abbr");
- luCountry.setCountry("country");
- luCountry.setFullName("fullName");
- luCountry.setWebphoneCountryLabel("webphoneCountryLabel");
- return luCountry;
- }
-
- @Test
- public void luCountryTest() {
- LuCountry mockluCountry = mockLuCountry();
- LuCountry luCountry = new LuCountry();
- luCountry.setAbbr("abbr");
- luCountry.setCountry("country");
- luCountry.setFullName("fullName");
- luCountry.setWebphoneCountryLabel("webphoneCountryLabel");
- assertEquals(luCountry.getAbbr(), mockluCountry.getAbbr());
- assertEquals(luCountry.getCountry(), mockluCountry.getCountry());
- assertEquals(luCountry.getFullName(), mockluCountry.getFullName());
- assertEquals(luCountry.getWebphoneCountryLabel(), mockluCountry.getWebphoneCountryLabel());
- }
-
- @Test
- public void compareToTest()
- {
- LuCountry mockluCountry = mockLuCountry();
- LuCountry luCountry = new LuCountry();
- luCountry.setCountry("test");
- assertEquals(mockluCountry.compareTo(luCountry),-17);
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LuStateTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LuStateTest.java
deleted file mode 100644
index 902d9cee..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LuStateTest.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class LuStateTest {
-
- public LuState mockLuState() {
- LuState luState = new LuState();
- luState.setAbbr("abbr");
- luState.setState("state");
- return luState;
- }
-
- @Test
- public void luStateTest() {
- LuState mockluState = mockLuState();
- LuState luState = new LuState();
- luState.setAbbr("abbr");
- luState.setState("state");
- assertEquals(mockluState.getAbbr(), luState.getAbbr());
- assertEquals(mockluState.getState(), luState.getState());
- LuState luState1 = new LuState();
- luState1.setState("stateTest");
- assertEquals(luState.compareTo(luState1), -4);
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LuTimeZoneTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LuTimeZoneTest.java
deleted file mode 100644
index cf5f9369..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/LuTimeZoneTest.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-
-import org.junit.Test;
-
-public class LuTimeZoneTest {
-
- public LuTimeZone mockLuTimeZone() {
- LuTimeZone luTimeZone = new LuTimeZone();
- luTimeZone.setName("name");
- luTimeZone.setTimezoneId((long) 1);
- luTimeZone.setValue("value");
- return luTimeZone;
- }
-
- @Test
- public void luTimeZone()
- {
- LuTimeZone luTimeZone = mockLuTimeZone();
- LuTimeZone luTimeZone1 = mockLuTimeZone();
- assertEquals(luTimeZone.getName(), luTimeZone1.getName());
- assertEquals(luTimeZone.getValue(), luTimeZone1.getValue());
- assertEquals(luTimeZone.getTimezoneId(), luTimeZone1.getTimezoneId());
- assertEquals(luTimeZone.getId(), null);
- luTimeZone.setId((long) 1);
- luTimeZone1.setId((long) 2);
- assertTrue(luTimeZone.compareTo(luTimeZone1) == -1);
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/MenuDataTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/MenuDataTest.java
deleted file mode 100644
index 2b16c9ef..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/MenuDataTest.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class MenuDataTest {
-
- public MenuData mockMenuTest() {
- MenuData menuData = new MenuData();
- menuData.setParentMenu(null);
- menuData.setChildMenus(null);
- return menuData;
- }
-
- @Test
- public void menuDataTest() {
- MenuData menuData = mockMenuTest();
- assertNull(menuData.getParentMenu());
- assertNull(menuData.getChildMenus());
- assertEquals(menuData.getActiveAsString(), "false");
- assertEquals(menuData.getParentIdAsString(), "null");
- assertEquals(menuData.getSeparatorAsString(), "false");
- MenuData menuData1 = mockMenuTest();
- menuData1.setSortOrder(null);
- assertTrue(menuData1.compareTo(menuData) == 1);
- menuData1.setSortOrder((short) 1);
- menuData.setSortOrder(null);
- assertTrue(menuData1.compareTo(menuData) == 1);
- menuData.setSortOrder((short) 1);
- assertTrue(menuData1.compareTo(menuData) == 1);
- menuData.setSortOrder((short) 2);
- assertTrue(menuData1.compareTo(menuData) == -1);
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/MenuTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/MenuTest.java
deleted file mode 100644
index ece93c87..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/MenuTest.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class MenuTest {
-
- public Menu mockMenu() {
- Menu menu = new Menu();
- menu.setMenuLevel("menuLevel");
- menu.setLabel("label");
- menu.setParentId((long) 1);
- menu.setAction("action");
- menu.setFunctionCd("functionCd");
- menu.setSortOrder((short) 1);
- menu.setServlet("servlet");
- menu.setQueryString("queryString");
- menu.setExternalUrl("externalUrl");
- menu.setTarget("target");
- menu.setActive(false);
- menu.setMenuSetCode("menuSetCode");
- menu.setSeparator(false);
- menu.setImageSrc("imageSrc");
- return menu;
- }
-
- @Test
- public void menuTest() {
- Menu menu = mockMenu();
- Menu menu1 = mockMenu();
- assertEquals(menu.getMenuLevel(), menu1.getMenuLevel());
- assertEquals(menu.getLabel(), menu1.getLabel());
- assertEquals(menu.getParentId(), menu1.getParentId());
- assertEquals(menu.getAction(), menu1.getAction());
- assertEquals(menu.getFunctionCd(), menu1.getFunctionCd());
- assertEquals(menu.getSortOrder(), menu1.getSortOrder());
- assertEquals(menu.getServlet(), menu1.getServlet());
- assertEquals(menu.getQueryString(), menu1.getQueryString());
- assertEquals(menu.getExternalUrl(), menu1.getExternalUrl());
- assertEquals(menu.getTarget(), menu1.getTarget());
- assertEquals(menu.isActive(), menu1.isActive());
- assertEquals(menu.getMenuSetCode(), menu1.getMenuSetCode());
- assertEquals(menu.isSeparator(), menu1.isSeparator());
- assertEquals(menu.getImageSrc(), menu1.getImageSrc());
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/ProfileTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/ProfileTest.java
deleted file mode 100644
index aab449a4..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/ProfileTest.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class ProfileTest {
-
- public Profile mockProfile() {
- Profile profile = new Profile();
- profile.setId((long) 1);
- profile.setFirst_name("first_name");
- profile.setLast_name("last_name");
- profile.setEmail("email");
- profile.setOrgManagerUserId("orgManagerUserId");
- profile.setActive_yn("active_yn");
- profile.setOrgUserId("orgUserId");
- return profile;
- }
-
- @Test
- public void profileTest() {
- Profile profile = mockProfile();
- Profile profile1 = mockProfile();
- assertEquals(profile.getId(), profile1.getId());
- assertEquals(profile.getFirst_name(), profile1.getFirst_name());
- assertEquals(profile.getLast_name(), profile1.getLast_name());
- assertEquals(profile.getEmail(), profile1.getEmail());
- assertEquals(profile.getOrgManagerUserId(), profile1.getOrgManagerUserId());
- assertEquals(profile.getActive_yn(), profile1.getActive_yn());
- assertEquals(profile.getOrgUserId(), profile1.getOrgUserId());
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/RoleFunctionTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/RoleFunctionTest.java
deleted file mode 100644
index 82f62fa2..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/RoleFunctionTest.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class RoleFunctionTest {
-
- public RoleFunction mockRoleFunction() {
- RoleFunction roleFunction = new RoleFunction();
- roleFunction.setCode("code");
- roleFunction.setName("name");
- return roleFunction;
- }
-
- @Test
- public void rolefunctionTest() {
- RoleFunction roleFunction = mockRoleFunction();
- RoleFunction roleFunction1 = mockRoleFunction();
- assertEquals(roleFunction.getCode(), roleFunction1.getCode());
- assertEquals(roleFunction.getName(), roleFunction1.getName());
- assertEquals(roleFunction.getEditUrl(), roleFunction1.getEditUrl());
- roleFunction1.setName(null);
- assertTrue(roleFunction.compareTo(roleFunction1) == 1);
- RoleFunction roleFunction2 = mockRoleFunction();
- roleFunction2.setName(null);
- RoleFunction roleFunction3 = mockRoleFunction();
- assertTrue(roleFunction2.compareTo(roleFunction3) == 1);
- assertTrue(roleFunction.compareTo(roleFunction3) == 0);
- }
-
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/RoleTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/RoleTest.java
deleted file mode 100644
index df952a07..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/RoleTest.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-
-import java.util.Set;
-import java.util.TreeSet;
-
-import org.junit.Test;
-
-public class RoleTest {
-
- public Role mockRole() {
- Role role = new Role();
- role.setName("test");
- role.setActive(false);
- role.setPriority(1);
- Set roleFunctions = new TreeSet<>();
- RoleFunction roleFunction = new RoleFunction();
- roleFunction.setCode("code");
- roleFunction.setName("name");
- roleFunctions.add(roleFunction);
- role.setRoleFunctions(roleFunctions);
- Set roles = new TreeSet<>();
- Role newrole = new Role();
- role.setChildRoles(roles);
- role.setParentRoles(roles);
- return role;
- }
-
- @Test
- public void roleTest() {
- Role role = mockRole();
- Role role1 = mockRole();
- assertEquals(role.getName(), role1.getName());
- assertEquals(role.getActive(), role1.getActive());
- assertEquals(role.getRoleFunctions().size(), role1.getRoleFunctions().size());
- assertEquals(role.getParentRoles(), role1.getParentRoles());
- assertEquals(role.getChildRoles(), role1.getChildRoles());
- assertEquals(role.getPriority(), role1.getPriority());
- RoleFunction roleFunction = new RoleFunction();
- roleFunction.setCode("code1");
- roleFunction.setName("name1");
- role.addRoleFunction(roleFunction);
- Role parentrole = new Role();
- parentrole.setId((long) 1);
- role.addParentRole(parentrole);
- Role childrole = new Role();
- childrole.setId((long) 2);
- role.addChildRole(childrole);
- assertEquals(role.getToggleActiveAltText(), "Click to Activate Role");
- assertEquals(role.getToggleActiveImage(), "/static/fusion/images/inactive.png");
- role.removeChildRole((long) 2);
- role.removeParentRole((long) 1);
- role.removeRoleFunction("code1");
- role.setActive(true);
- assertEquals(role.getToggleActiveImage(), "/static/fusion/images/active.png");
- assertEquals(role.getToggleActiveAltText(), "Click to Deactivate Role");
- assertEquals(role.getEditUrl(),"/role.htm?role_id=null");
- }
-
- @Test
- public void compareToTest() {
- Role role = mockRole();
- role.setName(null);
- Role role1 = mockRole();
- assertTrue(role.compareTo(role1) == 1);
- role.setName("test");
- role1.setName(null);
- assertTrue(role.compareTo(role1) == 1);
- role1.setName("test");
- assertTrue(role.compareTo(role1) == 0);
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UrlsAccessibleKeyTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UrlsAccessibleKeyTest.java
deleted file mode 100644
index c9864e0b..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UrlsAccessibleKeyTest.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class UrlsAccessibleKeyTest {
-
- public UrlsAccessibleKey mockUrlsAccessibleKey() {
- UrlsAccessibleKey urlsAccessibleKey = new UrlsAccessibleKey();
- urlsAccessibleKey.setUrl("url");
- urlsAccessibleKey.setFunctionCd("functionCd");
- return urlsAccessibleKey;
- }
-
- @Test
- public void urlsAccessibleKeyTest() {
- UrlsAccessibleKey mockurlsAccessibleKey = mockUrlsAccessibleKey();
- UrlsAccessibleKey urlsAccessibleKey = new UrlsAccessibleKey("url", "functionCd");
- assertEquals(urlsAccessibleKey.getUrl(), mockurlsAccessibleKey.getUrl());
- assertEquals(urlsAccessibleKey.getFunctionCd(), mockurlsAccessibleKey.getFunctionCd());
- }
-
- @Test
- public void equalsandHashCodetest() {
- UrlsAccessibleKey mockurlsAccessibleKey = mockUrlsAccessibleKey();
- UrlsAccessibleKey mockurlsAccessibleKey1 = mockUrlsAccessibleKey();
- UrlsAccessibleKey urlsAccessibleKey = mockurlsAccessibleKey;
- assertTrue(mockurlsAccessibleKey.equals(urlsAccessibleKey));
- assertFalse(mockurlsAccessibleKey.equals(null));
- User user = new User();
- assertFalse(mockurlsAccessibleKey.equals(user));
- assertTrue(mockurlsAccessibleKey.equals(mockurlsAccessibleKey1));
- UrlsAccessibleKey mockurlsAccessibleKey2 = new UrlsAccessibleKey("test", "test");
- assertFalse(mockurlsAccessibleKey2.equals(mockurlsAccessibleKey1));
- UrlsAccessibleKey mockurlsAccessibleKey3 = new UrlsAccessibleKey("url", "test");
- assertFalse(mockurlsAccessibleKey3.equals(mockurlsAccessibleKey1));
- assertNotNull(mockurlsAccessibleKey2.hashCode());
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UrlsAccessibleTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UrlsAccessibleTest.java
deleted file mode 100644
index f02e1c22..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UrlsAccessibleTest.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class UrlsAccessibleTest {
-
- public UrlsAccessible mockUrlsAccessible() {
- UrlsAccessible urlsAccessible = new UrlsAccessible();
- UrlsAccessibleKey urlsAccessibleKey = new UrlsAccessibleKey();
- urlsAccessibleKey.setUrl("url");
- urlsAccessibleKey.setFunctionCd("functionCd");
- urlsAccessible.setUrlsAccessibleKey(urlsAccessibleKey);
- return urlsAccessible;
- }
-
- @Test
- public void urlsAccessibleTest() {
- UrlsAccessible urlsAccessible = mockUrlsAccessible();
- UrlsAccessible urlsAccessible1 = new UrlsAccessible("url", "functionCd");
- assertEquals(urlsAccessible.getUrlsAccessibleKey(), urlsAccessible1.getUrlsAccessibleKey());
- assertEquals(urlsAccessible.getUrl(), urlsAccessible1.getUrl());
- assertEquals(urlsAccessible.getFunctionCd(), urlsAccessible1.getFunctionCd());
- assertNotNull(urlsAccessible.hashCode());
- }
-
- @Test
- public void equlasTest() {
- UrlsAccessible urlsAccessible = mockUrlsAccessible();
- UrlsAccessible urlsAccessible1 = mockUrlsAccessible();
- User user = new User();
- assertFalse(urlsAccessible.equals(null));
- assertFalse(urlsAccessible.equals(user));
- assertTrue(urlsAccessible.equals(urlsAccessible1));
-
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UserAppIdTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UserAppIdTest.java
deleted file mode 100644
index 5a057f9f..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UserAppIdTest.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class UserAppIdTest {
-
-
- public UserAppId mockUserAppId() {
- UserAppId userAppId = new UserAppId();
- Role role = new Role();
- role.setId((long) 1);
- App app = new App();
- app.setId((long) 1);
- userAppId.setUserId((long) 1);
- userAppId.setApp(app);
- userAppId.setRole(role);
- return userAppId;
- }
-
- @Test
- public void userAppIdTest() {
- UserAppId userAppId = mockUserAppId();
- UserAppId userAppId1 = mockUserAppId();
- User user = new User();
- assertEquals(userAppId.getUserId(), userAppId1.getUserId());
- assertEquals(userAppId.getApp().getId(), userAppId1.getApp().getId());
- assertEquals(userAppId.getRole().getId(), userAppId1.getRole().getId());
- assertTrue(userAppId.equals(userAppId1));
- assertFalse(userAppId1.equals(user));
- assertFalse(userAppId1.equals(null));
- UserAppId userAppId2 = userAppId1;
- assertTrue(userAppId2.equals(userAppId1));
- }
-
- @Test
- public void hashCodeTest() {
- UserAppId userAppId = mockUserAppId();
- assertNotNull(userAppId.hashCode());
- userAppId.setUserId(null);
- userAppId.getApp().setId(null);
- userAppId.getRole().setId(null);
- assertNotNull(userAppId.hashCode());
-
-
- }
-
-
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UserAppTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UserAppTest.java
deleted file mode 100644
index 76704354..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UserAppTest.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class UserAppTest {
-
- public UserApp mockUserApp() {
- UserApp userapp = new UserApp();
- Role role = new Role();
- role.setId((long) 1);
- userapp.setRole(role);
- App app = new App();
- app.setId((long) 1);
- userapp.setApp(app);
- userapp.setUserId((long) 1);
- userapp.setPriority(null);
- return userapp;
- }
-
- @Test
- public void userAppTest() {
- UserApp userapp1 = mockUserApp();
- UserApp userapp2 = mockUserApp();
- userapp2.setUserId((long) 2);
- assertNull(userapp1.getPriority());
- assertEquals(userapp2.compareTo(userapp1), 1);
- assertNotNull(userapp1.hashCode());
- userapp2.setUserId((long) 1);
- assertTrue(userapp1.equals(userapp2));
- User user = new User();
- assertFalse(userapp2.equals(user));
- assertFalse(user.equals(null));
- UserApp userapp3 = userapp2;
- assertTrue(userapp3.equals(userapp2));
- }
-
-
- @Test
- public void hashCodeTest() {
- UserApp userapp1 = mockUserApp();
- assertNotNull(userapp1.hashCode());
- userapp1.setUserId(null);
- userapp1.getApp().setId(null);
- userapp1.getRole().setId(null);
- userapp1.setPriority(null);
- assertNotNull(userapp1.hashCode());
-
-
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UserTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UserTest.java
deleted file mode 100644
index 7dee9529..00000000
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/UserTest.java
+++ /dev/null
@@ -1,216 +0,0 @@
-/*
- * ============LICENSE_START==========================================
- * ONAP Portal SDK
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- *
- * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
- * you may not use this software except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://creativecommons.org/licenses/by/4.0/
- *
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ============LICENSE_END============================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.onap.portalsdk.core.domain;
-
-import static org.junit.Assert.*;
-
-import java.util.Set;
-import java.util.SortedSet;
-import java.util.TreeSet;
-
-import org.junit.Test;
-
-public class UserTest {
-
- public User mockUser()
- {
- User user = new User();
- user.setOrgId((long) 1);
- user.setManagerId((long) 12);
- user.setFirstName("firstName");
- user.setMiddleInitial("middleInitial");
- user.setLastName("lastName");
- user.setPhone("phone");
- user.setFax("fax");
- user.setCellular("cellular");
- user.setEmail("email");
- user.setAddressId((long) 1);
- user.setAlertMethodCd("alertMethodCd");
- user.setHrid("hrid");
- user.setOrgUserId("orgUserId");
- user.setOrgCode("orgCode");
- user.setAddress1("address1");
- user.setAddress2("address2");
- user.setCity("city");
- user.setState("state");
- user.setZipCode("zipCode");
- user.setCountry("country");
- user.setOrgManagerUserId("orgManagerUserId");
- user.setLocationClli("locationClli");
- user.setBusinessCountryCode("businessCountryCode");
- user.setBusinessCountryName("businessCountryName");
- user.setBusinessUnit("businessUnit");
- user.setBusinessUnitName("businessUnitName");
- user.setDepartment("department");
- user.setDepartmentName("departmentName");
- user.setCompanyCode("companyCode");
- user.setCompany("company");
- user.setZipCodeSuffix("zipCodeSuffix");
- user.setJobTitle("jobTitle");
- user.setCommandChain("commandChain");
- user.setSiloStatus("siloStatus");
- user.setCostCenter("costCenter");
- user.setFinancialLocCode("financialLocCode");
- user.setLoginId("loginId");
- user.setLoginPwd("loginPwd");
- user.setLastLoginDate(null);
- user.setActive(false);
- user.setInternal(false);
- user.setSelectedProfileId((long) 1);
- user.setTimeZoneId((long) 1);
- user.setChatId("chatId");
- user.setUserApps(null);
- user.setPseudoRoles(null);
- user.setOnline(false);
- return user;
- }
-
- @Test
- public void userTest()
- {
- User mockUser = mockUser();
- User user = mockUser();
- assertEquals(user.getOrgId(), mockUser.getOrgId());
- assertEquals(user.getManagerId(), mockUser.getManagerId());
- assertEquals(user.getFirstName(), mockUser.getFirstName());
- assertEquals(user.getMiddleInitial(), mockUser.getMiddleInitial());
- assertEquals(user.getLastName(), mockUser.getLastName());
- assertEquals(user.getPhone(), mockUser.getPhone());
- assertEquals(user.getFax(), mockUser.getFax());
- assertEquals(user.getCellular(), mockUser.getCellular());
- assertEquals(user.getEmail(), mockUser.getEmail());
- assertEquals(user.getAddressId(), mockUser.getAddressId());
- assertEquals(user.getAlertMethodCd(), mockUser.getAlertMethodCd());
- assertEquals(user.getHrid(), mockUser.getHrid());
- assertEquals(user.getOrgUserId(), mockUser.getOrgUserId());
- assertEquals(user.getOrgCode(), mockUser.getOrgCode());
- assertEquals(user.getAddress1(), mockUser.getAddress1());
- assertEquals(user.getAddress2(), mockUser.getAddress2());
- assertEquals(user.getCity(), mockUser.getCity());
- assertEquals(user.getState(), mockUser.getState());
- assertEquals(user.getZipCode(), mockUser.getZipCode());
- assertEquals(user.getCountry(), mockUser.getCountry());
- assertEquals(user.getOrgManagerUserId(), mockUser.getOrgManagerUserId());
- assertEquals(user.getLocationClli(), mockUser.getLocationClli());
- assertEquals(user.getBusinessCountryCode(), mockUser.getBusinessCountryCode());
- assertEquals(user.getBusinessCountryName(), mockUser.getBusinessCountryName());
- assertEquals(user.getBusinessUnit(), mockUser.getBusinessUnit());
- assertEquals(user.getBusinessUnitName(), mockUser.getBusinessUnitName());
- assertEquals(user.getDepartment(), mockUser.getDepartment());
- assertEquals(user.getDepartmentName(), mockUser.getDepartmentName());
- assertEquals(user.getCompanyCode(), mockUser.getCompanyCode());
- assertEquals(user.getCompany(), mockUser.getCompany());
- assertEquals(user.getZipCodeSuffix(), mockUser.getZipCodeSuffix());
- assertEquals(user.getJobTitle(), mockUser.getJobTitle());
- assertEquals(user.getCommandChain(), mockUser.getCommandChain());
- assertEquals(user.getSiloStatus(), mockUser.getSiloStatus());
- assertEquals(user.getCostCenter(), mockUser.getCostCenter());
- assertEquals(user.getFinancialLocCode(), mockUser.getFinancialLocCode());
- assertEquals(user.getLoginId(), mockUser.getLoginId());
- assertEquals(user.getLoginPwd(), mockUser.getLoginPwd());
- assertEquals(user.getLastLoginDate(), mockUser.getLastLoginDate());
- assertEquals(user.getActive(), mockUser.getActive());
- assertEquals(user.getInternal(), mockUser.getInternal());
- assertEquals(user.getSelectedProfileId(), mockUser.getSelectedProfileId());
- assertEquals(user.getTimeZoneId(), mockUser.getTimeZoneId());
- assertEquals(user.getChatId(), mockUser.getChatId());
- assertEquals(user.getUserApps(), mockUser.getUserApps());
- assertEquals(user.getPseudoRoles(), mockUser.getPseudoRoles());
- assertEquals(user.getFullName(), mockUser.getFullName());
- assertFalse(user.isOnline());
-
-
- }
-
- @Test
- public void addAppRolesIfRolesNullTest()
- {
- User user = mockUser();
- Set userApps = new TreeSet();
- UserApp userapp = new UserApp();
- userApps.add(userapp);
- user.setUserApps(userApps);
- user.setUserApps(userApps);
- App app = new App();
- user.addAppRoles(app, null);
- }
-
- @Test
- public void addAppRolesTest()
- {
- User user = mockUser();
- App app = new App();
-
- SortedSet<Role> roles = new TreeSet<>();
- Role role = new Role();
- role.setId((long) 1);
- role.setName("test");
- roles.add(role);
- user.addAppRoles(app, roles);
- }
-
- @SuppressWarnings("unchecked")
- @Test
- public void addandRemoveRoleTest()
- {
- User user = mockUser();
- Set userApps = new TreeSet();
- UserApp userapp = new UserApp();
- SortedSet<Role> roles = new TreeSet();
- Role role = new Role();
- role.setId((long) 1);
- roles.add(role);
- userapp.setRole(role);
- userApps.add(userapp);
- user.setUserApps(userApps);
- user.removeRole((long) 1);
- user.addRole(role);
- user.setRoles(roles);
- UserApp userapplication = user.getDefaultUserApp();
- assertTrue(userapplication.getRole().getId() == 1);
- }
-
- @Test
- public void comapreToTest() {
-
- User user1 = mockUser();
- User user = mockUser();
- user.setFirstName("test");
- assertEquals(user.compareTo(user1), 14);
- }
-}
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/sessionmgt/TimeoutVOTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/sessionmgt/TimeoutVOTest.java
index 30dfa083..6726876d 100644
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/sessionmgt/TimeoutVOTest.java
+++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/domain/sessionmgt/TimeoutVOTest.java
@@ -37,10 +37,9 @@
*/
package org.onap.portalsdk.core.domain.sessionmgt;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
import org.junit.Test;
-import org.onap.portalsdk.core.domain.support.DomainVo;
public class TimeoutVOTest {
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/restful/client/PortalRestClientBaseTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/restful/client/PortalRestClientBaseTest.java
index 056a1190..0dc259e7 100644
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/restful/client/PortalRestClientBaseTest.java
+++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/restful/client/PortalRestClientBaseTest.java
@@ -54,7 +54,6 @@ import org.onap.portalsdk.core.domain.App;
import org.onap.portalsdk.core.onboarding.util.CipherUtil;
import org.onap.portalsdk.core.onboarding.util.PortalApiConstants;
import org.onap.portalsdk.core.onboarding.util.PortalApiProperties;
-import org.onap.portalsdk.core.restful.client.PortalRestClientBase;
import org.onap.portalsdk.core.service.AppService;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/restful/client/SharedContextRestClientTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/restful/client/SharedContextRestClientTest.java
index db6cde7c..06fe521d 100644
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/restful/client/SharedContextRestClientTest.java
+++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/restful/client/SharedContextRestClientTest.java
@@ -56,7 +56,6 @@ import org.onap.portalsdk.core.onboarding.util.CipherUtil;
import org.onap.portalsdk.core.onboarding.util.PortalApiConstants;
import org.onap.portalsdk.core.onboarding.util.PortalApiProperties;
import org.onap.portalsdk.core.restful.domain.SharedContext;
-import org.onap.portalsdk.core.scheduler.CoreRegister;
import org.onap.portalsdk.core.service.AppService;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/DataAccessServiceImplTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/DataAccessServiceImplTest.java
index 7f179f66..092585cb 100644
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/DataAccessServiceImplTest.java
+++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/DataAccessServiceImplTest.java
@@ -56,7 +56,7 @@ import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
-import org.onap.portalsdk.core.FusionObject.Parameters;
+import org.onap.portalsdk.core.domain.FusionObject.Parameters;
import org.onap.portalsdk.core.domain.support.DomainVo;
import org.onap.portalsdk.core.util.SystemProperties;
import org.powermock.api.mockito.PowerMockito;
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UrlAccessImplTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UrlAccessImplTest.java
index f3cd7bbe..42f72603 100644
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UrlAccessImplTest.java
+++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UrlAccessImplTest.java
@@ -40,8 +40,6 @@ package org.onap.portalsdk.core.service;
import java.util.ArrayList;
import java.util.List;
-import org.hibernate.criterion.Criterion;
-import org.hibernate.criterion.Restrictions;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserProfileServiceImplTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserProfileServiceImplTest.java
index 565142d0..c73343d6 100644
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserProfileServiceImplTest.java
+++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserProfileServiceImplTest.java
@@ -37,19 +37,12 @@
*/
package org.onap.portalsdk.core.service;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
-import org.mockito.Mockito;
import org.onap.portalsdk.core.domain.User;
-import org.onap.portalsdk.core.domain.support.CollaborateList;
import org.powermock.modules.junit4.PowerMockRunner;
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserServiceCentalizedImplTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserServiceCentalizedImplTest.java
index 17fadcc6..df6122a1 100644
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserServiceCentalizedImplTest.java
+++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserServiceCentalizedImplTest.java
@@ -43,7 +43,6 @@ import java.util.List;
import java.util.Map;
import org.junit.Assert;
-import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;