From 4ab3c22a653129e347c712cc29118f94b238d87b Mon Sep 17 00:00:00 2001 From: Krishnajinka Date: Mon, 6 Aug 2018 14:18:00 +0900 Subject: Fix basic code issues in controlloop Found few issues while going through the code. Fixing these issues in the controlloop package classes Issue-ID: POLICY-1017 Change-Id: I24d0ce1257ad689c3e9d9b7a3bea07eeb65383f1 Signed-off-by: Krishnajinka --- .../onap/policy/controlloop/actor/vfc/TestVFCActorServiceProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'controlloop/common/actors/actor.vfc/src') diff --git a/controlloop/common/actors/actor.vfc/src/test/java/org/onap/policy/controlloop/actor/vfc/TestVFCActorServiceProvider.java b/controlloop/common/actors/actor.vfc/src/test/java/org/onap/policy/controlloop/actor/vfc/TestVFCActorServiceProvider.java index 65425b01e..caf89eb45 100644 --- a/controlloop/common/actors/actor.vfc/src/test/java/org/onap/policy/controlloop/actor/vfc/TestVFCActorServiceProvider.java +++ b/controlloop/common/actors/actor.vfc/src/test/java/org/onap/policy/controlloop/actor/vfc/TestVFCActorServiceProvider.java @@ -25,6 +25,7 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.fail; +import java.util.Objects; import java.util.UUID; import org.junit.AfterClass; @@ -98,7 +99,7 @@ public class TestVFCActorServiceProvider { VFCRequest request = VFCActorServiceProvider.constructRequest(onset, operation, policy, new AaiGetVnfResponse()); - assertEquals(requestId, request.getRequestId()); + assertEquals(requestId, Objects.requireNonNull(request).getRequestId()); assertEquals("dorothy.gale.1939", request.getHealRequest().getVnfInstanceId()); assertEquals("restartvm", request.getHealRequest().getAdditionalParams().getAction()); } -- cgit 1.2.3-korg