blob: bca8c491c664d1c6e2e16119e3640554fe1c4cd7 (
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
|
package org.openecomp.portalapp.portal.domain;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.openecomp.portalapp.portal.domain.EcompAppRoleId;
public class EcompAppRoleIdTest {
public EcompAppRoleId mockEcompAppRoleId(){
EcompAppRoleId ecompAppRoleId = new EcompAppRoleId();
ecompAppRoleId.setAppId((long)1);
ecompAppRoleId.setAppName("test");
ecompAppRoleId.setRoleId(1);
ecompAppRoleId.setRoleName("test");
return ecompAppRoleId;
}
@Test
public void ecompAppRoleIdTest(){
EcompAppRoleId ecompAppRoleId = mockEcompAppRoleId();
assertEquals(ecompAppRoleId.getAppId(), new Long(1));
assertEquals(ecompAppRoleId.getAppName(), "test");
assertEquals(ecompAppRoleId.getRoleId().toString(), "1");
assertEquals(ecompAppRoleId.getRoleName(), "test");
}
}
|