summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/transport/EpRoleNotificationItemTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/transport/EpRoleNotificationItemTest.java')
-rw-r--r--ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/transport/EpRoleNotificationItemTest.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/transport/EpRoleNotificationItemTest.java b/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/transport/EpRoleNotificationItemTest.java
new file mode 100644
index 00000000..beb67ba9
--- /dev/null
+++ b/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/transport/EpRoleNotificationItemTest.java
@@ -0,0 +1,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");
+ }
+
+}