beb67ba99727e13c227d9ce67ad711db1384e0ed
[portal.git] / ecomp-portal-BE-common / src / test / java / org / openecomp / portalapp / portal / transport / EpRoleNotificationItemTest.java
1 package org.openecomp.portalapp.portal.transport;
2
3 import static org.junit.Assert.assertEquals;
4
5 import org.junit.Test;
6 import org.openecomp.portalapp.portal.transport.EpRoleNotificationItem;
7
8 public class EpRoleNotificationItemTest {
9         
10         public EpRoleNotificationItem mockEpRoleNotificationItem(){
11                 EpRoleNotificationItem epRoleNotificationItem = new EpRoleNotificationItem();
12                 
13                 epRoleNotificationItem.setId((long)1);
14                 epRoleNotificationItem.setNotificationId((long)1);
15                 epRoleNotificationItem.setRoleId(1);
16                 epRoleNotificationItem.setRecvUserId(1);
17                 
18                 return epRoleNotificationItem;
19         }
20         
21         @Test
22         public void epRoleNotificationItemTest(){
23                 EpRoleNotificationItem epRoleNotificationItem = mockEpRoleNotificationItem();
24                 
25                 assertEquals(epRoleNotificationItem.getId(), new Long(1));
26                 assertEquals(epRoleNotificationItem.getNotificationId(), new Long(1));
27                 assertEquals(epRoleNotificationItem.getRoleId().toString(), "1");
28                 assertEquals(epRoleNotificationItem.getRecvUserId().toString(), "1");
29         }
30
31 }