summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/model/AppCategoryFunctionsItemTest.java
blob: 9c9c105e56cd398a6430200611d0a160717ac164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*-
 * ============LICENSE_START==========================================
 * ONAP Portal
 * ===================================================================
 * Copyright (C) 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============================================
 *
 * 
 */
package org.onap.portalapp.portal.model;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import org.junit.Test;
import org.onap.portalapp.portal.ecomp.model.AppCategoryFunctionsItem;

public class AppCategoryFunctionsItemTest {

	public AppCategoryFunctionsItem mockAppCategoryFunctionsItem(){
		AppCategoryFunctionsItem appCategoryFunctionsItem = new AppCategoryFunctionsItem();
		
		appCategoryFunctionsItem.setRowId("test");
		appCategoryFunctionsItem.setAppId("test");
		appCategoryFunctionsItem.setApplication("test");
		appCategoryFunctionsItem.setFunctions("test");
		
		return appCategoryFunctionsItem;
	}
	
	@Test
	public void appCategoryFunctionsItemTest(){
		AppCategoryFunctionsItem appCategoryFunctionsItem = mockAppCategoryFunctionsItem();
		
		AppCategoryFunctionsItem appCategoryFunctionsItem1 = new AppCategoryFunctionsItem();
		
		appCategoryFunctionsItem1.setRowId("test");
		appCategoryFunctionsItem1.setAppId("test");
		appCategoryFunctionsItem1.setApplication("test");
		appCategoryFunctionsItem1.setFunctions("test");
		
		assertEquals(appCategoryFunctionsItem.getRowId(), appCategoryFunctionsItem1.getRowId());
		assertEquals(appCategoryFunctionsItem.getAppId(), appCategoryFunctionsItem1.getAppId());
		assertEquals(appCategoryFunctionsItem.getApplication(), appCategoryFunctionsItem1.getApplication());
		assertEquals(appCategoryFunctionsItem.getFunctions(), appCategoryFunctionsItem1.getFunctions());
		assertEquals(appCategoryFunctionsItem.toString(), "AppCategoryFunctionsItem [rowId=test, appId=test, application=test, category=null, functions=test]");
		assertEquals(appCategoryFunctionsItem.hashCode(), appCategoryFunctionsItem1.hashCode());
		assertTrue(appCategoryFunctionsItem.equals(appCategoryFunctionsItem1));

	}
}
ss="p">; z-index: 100; transition: left @transition-duration; margin-top: -15px; .ecomp-right-sidebar-main { //background-color: ; position: absolute; margin-top: 115px; height: 100vh; .bg_portalWhite;//white for 1702 box-shadow: 0 4px 5px rgba(0, 0, 0, .2); left: -90px; width:75px; padding:0px; height: 100vh; .accordion-container{ margin-top: 45px; } .portal-accordion-font{ font-size: .875rem; color: #666; display: inline-block; font-family: Arial; } .portal-accordion-active{ color: #199DDF !important; } .sub-item{ .portal-accordion-font; cursor: pointer; height: 37px; line-height: 37px; padding-left: 20px; padding-bottom: 10px; vertical-align: middle; width: 100%; } .sub-item:hover{ .portal-accordion-active; } .parent-item{ .portal-accordion-font; border-bottom: 1px solid #bbb; cursor: pointer; height: 37px; line-height: 37px; padding-bottom: 10px; vertical-align: middle; width: 100%; } .parent-item:hover{ .portal-accordion-active; } } } .open-userbar { left: 0; transition: left .25s ease-in-out; -moz-transition: left .25s ease-in-out; -webkit-transition: left .25s ease-in-out; } .close-userbar { left: 91px; transition: left .25s ease-in-out; -moz-transition: left .25s ease-in-out; -webkit-transition: left .25s ease-in-out; } .content-overlayed { position: fixed; top: 110px; right: 0; bottom: 0; left: 0; background: none repeat scroll 0 0 rgb(242, 242, 242); z-index: 9999; } .fade-animation{ opacity: @overlayer-opacity; transition: opacity @transition-duration ease-in-out; } .fade-animation.ng-hide { opacity:0; transition: opacity @transition-duration ease-in-out; } .activeUserIcon { transition: all .2s ease-in-out; display: block; margin-left: auto; margin-right: auto; height:55px; width:55px; border-radius: 50%; } .activeUserIcon:hover { transform: scale(1.5); } .ecomp-right-sidebar-toggle{ position: absolute; top: 400px; right: 35px; } .ecomp-right-sidebar-toggle-btn{ position:relative; } .open-userbar-toggle { // right: 0; transition: right .25s ease-in-out; -moz-transition: right .25s ease-in-out; -webkit-transition: right .25s ease-in-out; } .close-userbar-toggle { right: -36px; transition: right .25s ease-in-out; -moz-transition: right .25s ease-in-out; -webkit-transition: right .25s ease-in-out; } .ecomp-right-sidebar-title{ font-family: Arial; font-size: 14px; color: #ef6f00; margin-bottom:20px; text-align: center; } .ecomp-right-sidebar-toggle a{ transform: rotate(-90deg); z-index:2 } .ecomp-right-sidebar-toggle button{ transform: rotate(-90deg); z-index:2; width: 100px!important; height: 30px !important; padding-bottom: 26px !important; } .btn:last-child { margin-right: 6px !important; } .right-menu-button{ font-family: Omnes-ECOMP-W02,Arial }