Security/ Package Name changes
[portal.git] / ecomp-portal-BE-common / src / test / java / org / onap / portalapp / portal / service / FunctionalMenuServiceImplTest.java
1 package org.onap.portalapp.portal.service;
2 /*-
3  * ============LICENSE_START==========================================
4  * ONAP Portal
5  * ===================================================================
6  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7  * ===================================================================
8  *
9  * Unless otherwise specified, all software contained herein is licensed
10  * under the Apache License, Version 2.0 (the "License");
11  * you may not use this software except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  *             http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  * Unless otherwise specified, all documentation contained herein is licensed
23  * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
24  * you may not use this documentation except in compliance with the License.
25  * You may obtain a copy of the License at
26  *
27  *             https://creativecommons.org/licenses/by/4.0/
28  *
29  * Unless required by applicable law or agreed to in writing, documentation
30  * distributed under the License is distributed on an "AS IS" BASIS,
31  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32  * See the License for the specific language governing permissions and
33  * limitations under the License.
34  *
35  * ============LICENSE_END============================================
36  *
37  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
38  */
39 //package org.openecomp.portalapp.portal.test.service;
40 //
41 //import static org.junit.Assert.assertTrue;
42 //
43 //import java.util.ArrayList;
44 //import java.util.HashMap;
45 //import java.util.List;
46 //import java.util.Map;
47 //
48 //import org.junit.Test;
49 //import org.openecomp.portalapp.portal.service.FunctionalMenuService;
50 //import org.openecomp.portalapp.portal.transport.BusinessCardApplicationRole;
51 //import org.openecomp.portalapp.portal.transport.FunctionalMenuRole;
52 //import org.openecomp.portalapp.test.framework.ApplicationCommonContextTestSuite;
53 //import org.springframework.beans.factory.annotation.Autowired;
54 //
55 //public class FunctionalMenuServiceImplTest extends ApplicationCommonContextTestSuite {
56 //
57 //      @Autowired
58 //      FunctionalMenuService functionalMenuService;
59 //
60 //      @Test
61 //      public void getAppListTestService() throws Exception {
62 //
63 //              String userId = "guestT";
64 //              List<BusinessCardApplicationRole> userAppRolesActualResult = null;
65 //
66 //              List<BusinessCardApplicationRole> userAppRolesExpectedResult = new ArrayList<BusinessCardApplicationRole>();
67 //              BusinessCardApplicationRole businessCardApplicationRole = new BusinessCardApplicationRole();
68 //              businessCardApplicationRole.setAppName("ECOMP Portal");
69 //              businessCardApplicationRole.setRoleName("System Administrator");
70 //              userAppRolesExpectedResult.add(businessCardApplicationRole);
71 //              Map<String, String> params = new HashMap<String, String>();
72 //              params.put("userId", userId);
73 //              userAppRolesActualResult = functionalMenuService.getUserAppRolesList(userId);
74 //              assertTrue(userAppRolesActualResult.contains(businessCardApplicationRole));
75 //
76 //      }
77 //
78 //      @Test
79 //      public void getFunctionalMenuRoleTest() throws Exception {
80 //
81 //              FunctionalMenuRole expectedFunctionalMenuRole = new FunctionalMenuRole();
82 //              expectedFunctionalMenuRole.setId(new Integer(-1));
83 //
84 //              expectedFunctionalMenuRole.setMenuId((long) 137);
85 //              expectedFunctionalMenuRole.setAppId(new Integer(456));
86 //              expectedFunctionalMenuRole.setRoleId(new Integer(6214));
87 //              List<FunctionalMenuRole> actualFunctionalMenuRoleList = null;
88 //              actualFunctionalMenuRoleList = functionalMenuService.getFunctionalMenuRole();
89 //              assertTrue(actualFunctionalMenuRoleList.contains(expectedFunctionalMenuRole));
90 //
91 //      }
92 //}