From 570fcbcdbb44511121447e9445db5b0ada3786ca Mon Sep 17 00:00:00 2001 From: Lukasz Muszkieta Date: Wed, 11 Sep 2019 09:37:21 +0200 Subject: bug fix - avoid npe in pnf flow Change-Id: I8e848c2bdcec0822ae08280223297b4825e9b7c2 Issue-ID: SO-2289 Signed-off-by: Lukasz Muszkieta --- .../so/bpmn/infrastructure/pnf/delegate/DmaapClientTestImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bpmn/mso-infrastructure-bpmn') diff --git a/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/DmaapClientTestImpl.java b/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/DmaapClientTestImpl.java index dd993bca51..078317885c 100644 --- a/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/DmaapClientTestImpl.java +++ b/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/DmaapClientTestImpl.java @@ -20,9 +20,8 @@ package org.onap.so.bpmn.infrastructure.pnf.delegate; -import java.util.HashMap; +import java.util.Map; import java.util.Objects; -import java.util.Optional; import org.onap.so.bpmn.infrastructure.pnf.dmaap.DmaapClient; import org.springframework.context.annotation.Primary; import org.springframework.stereotype.Component; @@ -35,8 +34,7 @@ public class DmaapClientTestImpl implements DmaapClient { private Runnable informConsumer; @Override - public void registerForUpdate(String pnfCorrelationId, Runnable informConsumer, - Optional> updateInfo) { + public void registerForUpdate(String pnfCorrelationId, Runnable informConsumer, Map updateInfo) { this.pnfCorrelationId = pnfCorrelationId; this.informConsumer = informConsumer; } -- cgit 1.2.3-korg