diff options
author | 2022-08-03 02:44:04 +0000 | |
---|---|---|
committer | 2022-08-03 02:44:04 +0000 | |
commit | 0fa823de11b9b2d0980275247dfd9e597f9dc915 (patch) | |
tree | efe7f820d141c98ed1635b8a092e5b48fc638522 /components/slice-analysis-ms/src/main/java/org/onap | |
parent | f7371ed8b15bd23d5b63ca4808da7d1673bac46a (diff) |
Revert "Fix bug in handleNotification function and improve test code coverage"
This reverts commit f7371ed8b15bd23d5b63ca4808da7d1673bac46a.
Reason for revert: @Autowired instance does not need to be created manually.
Issue-ID: DCAEGEN2-3208
Change-Id: Iba33e54241925189c5abbb0590452c47d29b0e11
Signed-off-by: qingshuting <qingshuting1@huawei.com>
Diffstat (limited to 'components/slice-analysis-ms/src/main/java/org/onap')
-rw-r--r-- | components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/VesNotificationCallback.java | 7 |
1 files changed, 3 insertions, 4 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 485c3d96..584da7b7 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,7 +59,6 @@ public class VesNotificationCallback implements NotificationCallback { @PostConstruct public void init(){ configuration = Configuration.getInstance(); - ccvpnPmDatastore = new CCVPNPmDatastore(); vesNotifChangeIdentifier = configuration.getVesNotifChangeIdentifier(); vesNotfiChangeType = configuration.getVesNotifChangeType(); } @@ -74,7 +73,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) { @@ -95,7 +94,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(); @@ -112,4 +111,4 @@ public class VesNotificationCallback implements NotificationCallback { } -}
\ No newline at end of file +} |