blob: 864b6aa68fdca91c92d8b92dc27047497e460819 (
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
|
package org.openecomp.portalapp.portal.domain;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.openecomp.portalapp.portal.domain.EPAppRoleFunction;
public class EPAppRoleFunctionTest {
public EPAppRoleFunction mockEPAppRoleFunction(){
EPAppRoleFunction epAppRoleFunction = new EPAppRoleFunction();
epAppRoleFunction.setRoleId((long)1);
epAppRoleFunction.setAppId((long)1);
epAppRoleFunction.setCode("test");
return epAppRoleFunction;
}
@Test
public void epAppRoleFunctionTest(){
EPAppRoleFunction epAppRoleFunction = mockEPAppRoleFunction();
assertEquals(epAppRoleFunction.getRoleId(), new Long(1));
assertEquals(epAppRoleFunction.getAppId(), new Long(1));
assertEquals(epAppRoleFunction.getCode(), "test");
}
}
|