summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-analytics/src
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2018-10-01 23:26:29 +0530
committerezhil <ezhrajam@in.ibm.com>2018-10-01 23:26:50 +0530
commit8359126a4656682823ac129546ebda6ef28c79c1 (patch)
treeb10578d6ee720058071246270650f00e6b322d33 /ecomp-sdk/epsdk-analytics/src
parentd6bd65c16c632f018434d55ac46feca84247b145 (diff)
Added testcases to ReportScheduleTest
Added test cases to Remove email id Issue-ID: PORTAL-422 Change-Id: I3f57606dc5128f85087595ef96a8f59d2c9a90e0 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-analytics/src')
-rw-r--r--ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/model/definition/ReportScheduleTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/model/definition/ReportScheduleTest.java b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/model/definition/ReportScheduleTest.java
index 3ba80d9f..0078f5ef 100644
--- a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/model/definition/ReportScheduleTest.java
+++ b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/model/definition/ReportScheduleTest.java
@@ -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() {