Added testcases to ReportScheduleTest 04/69604/1
authorezhil <ezhrajam@in.ibm.com>
Mon, 1 Oct 2018 17:56:29 +0000 (23:26 +0530)
committerezhil <ezhrajam@in.ibm.com>
Mon, 1 Oct 2018 17:56:50 +0000 (23:26 +0530)
Added test cases to Remove email id

Issue-ID: PORTAL-422
Change-Id: I3f57606dc5128f85087595ef96a8f59d2c9a90e0
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/model/definition/ReportScheduleTest.java

index 3ba80d9..0078f5e 100644 (file)
@@ -38,6 +38,7 @@
 package org.onap.portalsdk.analytics.model.definition;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
 import java.io.FileInputStream;
@@ -842,6 +843,9 @@ public class ReportScheduleTest {
        @Test
        public void testRemoveEmailToUser() {
                reportSchedule.removeEmailToUser("1");
+               List value=reportSchedule.getEmailToUsers();
+               boolean removed=value.contains(value);
+               assertFalse(removed);
        }
 
 
@@ -861,6 +865,9 @@ public class ReportScheduleTest {
        @Test
        public void testRemoveEmailToRole() {
                reportSchedule.removeEmailToRole("roleID1");
+               List value=reportSchedule.getEmailToRoles();
+               boolean removed=value.contains(value);
+               assertFalse(removed);
        }
 
        @Test
@@ -868,6 +875,7 @@ public class ReportScheduleTest {
                reportSchedule.setAttachmentMode("Y");
                assertTrue(reportSchedule.isAttachmentMode());
        }
+       
 
        @Test
        public void testSetConditional() {