diff options
author | yashwanth <gandhapu.yashwanth@wipro.com> | 2021-09-03 05:07:02 +0000 |
---|---|---|
committer | yashwanth <gandhapu.yashwanth@wipro.com> | 2021-09-03 05:33:25 +0000 |
commit | 8c8fe4253f4cb61216bbc2564928a79a3723e703 (patch) | |
tree | 192093f8dbd3f975d0274a079a1e9e6fa4d22630 /ransim/ransimctrlr/RANSIM-CTRLR/src/test/java | |
parent | 410d8e3b6e201d607f6c7c291ed7125cfd7103aa (diff) |
Update FM message spec to VES 7.2
Issue-ID: DCAEGEN2-2884
Signed-off-by: yashwanth <gandhapu.yashwanth@wipro.com>
Change-Id: Id6b9eef744ae7d2287afa33cdaa28f86d8c06998
Diffstat (limited to 'ransim/ransimctrlr/RANSIM-CTRLR/src/test/java')
-rw-r--r-- | ransim/ransimctrlr/RANSIM-CTRLR/src/test/java/org/onap/ransim/rest/api/controller/TestRansimController.java | 10 |
1 files changed, 6 insertions, 4 deletions
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<String, String> alarmAdditionalInformation = new HashMap<String, String>(); 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<RansimControllerServices>() { @@ -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<Long,String> confusions = new HashMap<Long,String>(); + 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); |