e896d081bce4e39d21d856da4df333018ef6565b
[portal.git] / ecomp-portal-BE-common / src / test / java / org / openecomp / portalapp / portal / domain / EPUserNotificationTest.java
1 package org.openecomp.portalapp.portal.domain;
2
3 import static org.junit.Assert.assertEquals;
4
5 import java.util.Date;
6
7 import org.junit.Test;
8 import org.openecomp.portalapp.portal.domain.EPUserNotification;
9
10 public class EPUserNotificationTest {
11
12         public EPUserNotification mockEPUserNotification(){
13                 
14                 EPUserNotification epUserNotification = new EPUserNotification();
15                                 
16                 epUserNotification.setUserId((long)1);
17                 epUserNotification.setNotificationId((long)1);
18                 epUserNotification.setViewed("test");
19                 epUserNotification.setUpdateTime(new Date());           
20                 
21                 return epUserNotification;
22         }
23         
24         @Test
25         public void epUserNotificationTest(){
26                 EPUserNotification epUserNotification = mockEPUserNotification();
27                 
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());
32                 
33         }
34 }