summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPUserNotificationTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPUserNotificationTest.java')
-rw-r--r--ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPUserNotificationTest.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPUserNotificationTest.java b/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPUserNotificationTest.java
new file mode 100644
index 00000000..64313e52
--- /dev/null
+++ b/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPUserNotificationTest.java
@@ -0,0 +1,34 @@
+package org.openecomp.portalapp.portal.test.domain;
+
+import static org.junit.Assert.assertEquals;
+
+import java.util.Date;
+
+import org.junit.Test;
+import org.openecomp.portalapp.portal.domain.EPUserNotification;
+
+public class EPUserNotificationTest {
+
+ public EPUserNotification mockEPUserNotification(){
+
+ EPUserNotification epUserNotification = new EPUserNotification();
+
+ epUserNotification.setUserId((long)1);
+ epUserNotification.setNotificationId((long)1);
+ epUserNotification.setViewed("test");
+ epUserNotification.setUpdateTime(new Date());
+
+ return epUserNotification;
+ }
+
+ @Test
+ public void epUserNotificationTest(){
+ EPUserNotification epUserNotification = mockEPUserNotification();
+
+ assertEquals(epUserNotification.getUserId(), new Long(1));
+ assertEquals(epUserNotification.getNotificationId(), new Long(1));
+ assertEquals(epUserNotification.getViewed(), "test");
+ // assertEquals(epUserNotification.getUpdateTime(), new Date());
+
+ }
+}