1 package org.openecomp.portalapp.portal.domain;
3 import static org.junit.Assert.assertEquals;
6 import org.openecomp.portalapp.portal.domain.EPAppRoleFunction;
8 public class EPAppRoleFunctionTest {
10 public EPAppRoleFunction mockEPAppRoleFunction(){
11 EPAppRoleFunction epAppRoleFunction = new EPAppRoleFunction();
12 epAppRoleFunction.setRoleId((long)1);
13 epAppRoleFunction.setAppId((long)1);
14 epAppRoleFunction.setCode("test");
16 return epAppRoleFunction;
20 public void epAppRoleFunctionTest(){
21 EPAppRoleFunction epAppRoleFunction = mockEPAppRoleFunction();
23 assertEquals(epAppRoleFunction.getRoleId(), new Long(1));
24 assertEquals(epAppRoleFunction.getAppId(), new Long(1));
25 assertEquals(epAppRoleFunction.getCode(), "test");