diff options
author | 2022-07-18 19:56:15 +0800 | |
---|---|---|
committer | 2022-07-18 19:59:32 +0800 | |
commit | f7371ed8b15bd23d5b63ca4808da7d1673bac46a (patch) | |
tree | 5e8033c76aca430631f2eb4b0088bbb59113e39b /components/slice-analysis-ms/src/main/java | |
parent | 36ccf90948229527f5879796740fb5e4f9dbfcfc (diff) |
Fix bug in handleNotification function and improve test code coverage
Issue-ID: DCAEGEN2-3208
Change-Id: I5edc573b169ef45735951d2f691e4e80a00f33df
Signed-off-by: qingshuting <qingshuting1@huawei.com>
Diffstat (limited to 'components/slice-analysis-ms/src/main/java')
-rw-r--r-- | components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/VesNotificationCallback.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/VesNotificationCallback.java b/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/VesNotificationCallback.java index 584da7b7..485c3d96 100644 --- a/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/VesNotificationCallback.java +++ b/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/VesNotificationCallback.java @@ -59,6 +59,7 @@ public class VesNotificationCallback implements NotificationCallback { @PostConstruct public void init(){ configuration = Configuration.getInstance(); + ccvpnPmDatastore = new CCVPNPmDatastore(); vesNotifChangeIdentifier = configuration.getVesNotifChangeIdentifier(); vesNotfiChangeType = configuration.getVesNotifChangeType(); } @@ -73,7 +74,7 @@ public class VesNotificationCallback implements NotificationCallback { } /** - * Parse Performance dmaap notification and save to DB + * Parse Performance dmaap notification and save to DB * @param msg incoming message */ private void handleNotification(String msg) { @@ -94,7 +95,7 @@ public class VesNotificationCallback implements NotificationCallback { notifChangeIdentifier = output.getChangeIdentifier(); notifChangeType = output.getChangeType(); if (notifChangeType.equals(vesNotfiChangeType) - && notifChangeIdentifier.equals(vesNotifChangeIdentifier)) { + && notifChangeIdentifier.equals(vesNotifChangeIdentifier)) { cllId = output.getArrayOfNamedHashMap().get(0).getHashMap().getCllId(); uniId = output.getArrayOfNamedHashMap().get(0).getHashMap().getUniId(); bw = output.getArrayOfNamedHashMap().get(0).getHashMap().getBandwidthValue(); @@ -111,4 +112,4 @@ public class VesNotificationCallback implements NotificationCallback { } -} +}
\ No newline at end of file |