From 0be119cd1220b346e731daf30bdce0b1b9077da5 Mon Sep 17 00:00:00 2001 From: Rupinder Date: Mon, 18 May 2020 13:54:21 +0530 Subject: added asserts statements in 5 JUnits Issue-ID: APPC-1859 Change-Id: I121ff2a1514310ccffdecdf2a1bcc78e62f0dbff Signed-off-by: Rupinder --- .../test/java/org/onap/appc/flow/controller/data/ParametersTest.java | 1 + .../src/test/java/org/onap/appc/flow/executor/node/TestParsingNode.java | 2 ++ 2 files changed, 3 insertions(+) (limited to 'appc-config/appc-flow-controller') diff --git a/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ParametersTest.java b/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ParametersTest.java index c17b642e9..0fb16d89d 100644 --- a/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ParametersTest.java +++ b/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ParametersTest.java @@ -62,6 +62,7 @@ public class ParametersTest { param.setParamName("2"); param.setParamValue("def"); System.out.println("param hashcode is " + param.hashCode()); + assertNotNull(param); } @Test diff --git a/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/executor/node/TestParsingNode.java b/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/executor/node/TestParsingNode.java index 58ac458aa..372d20eb6 100644 --- a/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/executor/node/TestParsingNode.java +++ b/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/executor/node/TestParsingNode.java @@ -28,6 +28,7 @@ import org.junit.Test; import org.onap.appc.flow.controller.node.JsonParsingNode; import org.onap.ccsdk.sli.core.sli.SvcLogicContext; import org.onap.ccsdk.sli.core.sli.SvcLogicException; +import static org.junit.Assert.assertNotNull; public class TestParsingNode { @@ -43,6 +44,7 @@ public class TestParsingNode { String parmName = (String) key; String parmValue = ctx.getAttribute(parmName); } + assertNotNull(ctx); } -- cgit 1.2.3-korg