summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/transport/EpRoleNotificationItemTest.java
blob: beb67ba99727e13c227d9ce67ad711db1384e0ed (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
package org.openecomp.portalapp.portal.transport;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.openecomp.portalapp.portal.transport.EpRoleNotificationItem;

public class EpRoleNotificationItemTest {
	
	public EpRoleNotificationItem mockEpRoleNotificationItem(){
		EpRoleNotificationItem epRoleNotificationItem = new EpRoleNotificationItem();
		
		epRoleNotificationItem.setId((long)1);
		epRoleNotificationItem.setNotificationId((long)1);
		epRoleNotificationItem.setRoleId(1);
		epRoleNotificationItem.setRecvUserId(1);
		
		return epRoleNotificationItem;
	}
	
	@Test
	public void epRoleNotificationItemTest(){
		EpRoleNotificationItem epRoleNotificationItem = mockEpRoleNotificationItem();
		
		assertEquals(epRoleNotificationItem.getId(), new Long(1));
		assertEquals(epRoleNotificationItem.getNotificationId(), new Long(1));
		assertEquals(epRoleNotificationItem.getRoleId().toString(), "1");
		assertEquals(epRoleNotificationItem.getRecvUserId().toString(), "1");
	}

}