1 package org.openecomp.portalapp.portal.domain;
3 import static org.junit.Assert.assertEquals;
8 import org.openecomp.portalapp.portal.domain.EPUserNotification;
10 public class EPUserNotificationTest {
12 public EPUserNotification mockEPUserNotification(){
14 EPUserNotification epUserNotification = new EPUserNotification();
16 epUserNotification.setUserId((long)1);
17 epUserNotification.setNotificationId((long)1);
18 epUserNotification.setViewed("test");
19 epUserNotification.setUpdateTime(new Date());
21 return epUserNotification;
25 public void epUserNotificationTest(){
26 EPUserNotification epUserNotification = mockEPUserNotification();
28 assertEquals(epUserNotification.getUserId(), new Long(1));
29 assertEquals(epUserNotification.getNotificationId(), new Long(1));
30 assertEquals(epUserNotification.getViewed(), "test");
31 // assertEquals(epUserNotification.getUpdateTime(), new Date());