864b6aa68fdca91c92d8b92dc27047497e460819
[portal.git] / ecomp-portal-BE-common / src / test / java / org / openecomp / portalapp / portal / domain / EPAppRoleFunctionTest.java
1 package org.openecomp.portalapp.portal.domain;
2
3 import static org.junit.Assert.assertEquals;
4
5 import org.junit.Test;
6 import org.openecomp.portalapp.portal.domain.EPAppRoleFunction;
7
8 public class EPAppRoleFunctionTest {
9
10         public EPAppRoleFunction mockEPAppRoleFunction(){
11                 EPAppRoleFunction epAppRoleFunction = new EPAppRoleFunction();
12                 epAppRoleFunction.setRoleId((long)1);
13                 epAppRoleFunction.setAppId((long)1);
14                 epAppRoleFunction.setCode("test");
15                 
16                 return epAppRoleFunction;
17         }
18         
19         @Test
20         public void epAppRoleFunctionTest(){
21                 EPAppRoleFunction epAppRoleFunction = mockEPAppRoleFunction();
22                 
23                 assertEquals(epAppRoleFunction.getRoleId(), new Long(1));
24                 assertEquals(epAppRoleFunction.getAppId(), new Long(1));
25                 assertEquals(epAppRoleFunction.getCode(), "test");
26         }
27 }