MariaDB Connector and Sonar Scans; clean nl
[portal.git] / ecomp-portal-BE-common / src / test / java / org / openecomp / portalapp / portal / transport / EpRoleNotificationItemTest.java
diff --git a/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/transport/EpRoleNotificationItemTest.java b/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/transport/EpRoleNotificationItemTest.java
new file mode 100644 (file)
index 0000000..beb67ba
--- /dev/null
@@ -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");
+       }
+
+}