diff options
author | Rupinder <rupinsi1@in.ibm.com> | 2020-05-18 13:54:21 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2020-05-18 13:10:21 +0000 |
commit | 0be119cd1220b346e731daf30bdce0b1b9077da5 (patch) | |
tree | 196c0ee64b33faf88cf8aa4ed076f1c11aeac0ff /appc-config/appc-flow-controller | |
parent | ece150b7f8acc61dd983f6674bf9c8d4f086b84c (diff) |
added asserts statements in 5 JUnits
Issue-ID: APPC-1859
Change-Id: I121ff2a1514310ccffdecdf2a1bcc78e62f0dbff
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'appc-config/appc-flow-controller')
2 files changed, 3 insertions, 0 deletions
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); } |