From 8c8fe4253f4cb61216bbc2564928a79a3723e703 Mon Sep 17 00:00:00 2001 From: yashwanth Date: Fri, 3 Sep 2021 05:07:02 +0000 Subject: Update FM message spec to VES 7.2 Issue-ID: DCAEGEN2-2884 Signed-off-by: yashwanth Change-Id: Id6b9eef744ae7d2287afa33cdaa28f86d8c06998 --- .../onap/ransim/rest/api/controller/TestRansimController.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'ransim/ransimctrlr/RANSIM-CTRLR/src/test/java') diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/test/java/org/onap/ransim/rest/api/controller/TestRansimController.java b/ransim/ransimctrlr/RANSIM-CTRLR/src/test/java/org/onap/ransim/rest/api/controller/TestRansimController.java index 4c886e3..400089f 100644 --- a/ransim/ransimctrlr/RANSIM-CTRLR/src/test/java/org/onap/ransim/rest/api/controller/TestRansimController.java +++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/test/java/org/onap/ransim/rest/api/controller/TestRansimController.java @@ -187,11 +187,9 @@ public class TestRansimController { RansimControllerServices rscontroller = Mockito.mock(RansimControllerServices.class); Map alarmAdditionalInformation = new HashMap(); alarmAdditionalInformation.put("networkId", "abc"); - alarmAdditionalInformation.put("collisions", "1"); - alarmAdditionalInformation.put("confusions", "0"); CommonEventHeaderFm commonEventHeader = new CommonEventHeaderFm("Chn00", "", "nc1", 0, 0); FaultFields faultFields = new FaultFields("RanPciCollisionConfusionOccurred", "other", "Collision", "CRITICAL", - alarmAdditionalInformation); + "PCICollision", alarmAdditionalInformation); EventFm checkObj = new EventFm(commonEventHeader, faultFields); new MockUp() { @@ -210,7 +208,11 @@ public class TestRansimController { String networkId = "abc"; String ncServer = "nc1"; String cellId = "Chn00"; - FmAlarmInfo issue = new FmAlarmInfo("Collision", "1", "0"); + String collisions = ""; + HashMap confusions = new HashMap(); + collisions += "Chn00"+","+"Chn00"; + confusions.put(Long.valueOf(0),"Chn00");confusions.put(Long.valueOf(1),"Chn00"); + FmAlarmInfo issue = new FmAlarmInfo("Collision", collisions, confusions); /* * EventFm eventObj = rscontroller.setEventFm(networkId, ncServer, cellId, * issue); -- cgit 1.2.3-korg