From fdf7e648663e5770a431e9ba8088be6c3bbf1f5a Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Wed, 25 Jul 2018 18:36:49 +0530 Subject: added test case to TestCommandExecuterInput.java added test case to increase code coverage Issue-ID: APPC-1086 Change-Id: Iad87297e2f52c7a14bfa178ab6be4a841604715d Signed-off-by: Sandeep J --- .../org/onap/appc/executor/objects/TestCommandExecutorInput.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/test/java/org/onap/appc/executor/objects/TestCommandExecutorInput.java b/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/test/java/org/onap/appc/executor/objects/TestCommandExecutorInput.java index fd1511415..3d31310b7 100644 --- a/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/test/java/org/onap/appc/executor/objects/TestCommandExecutorInput.java +++ b/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/test/java/org/onap/appc/executor/objects/TestCommandExecutorInput.java @@ -22,6 +22,7 @@ import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; +import org.onap.appc.domainmodel.lcm.RuntimeContext; public class TestCommandExecutorInput { @@ -48,5 +49,13 @@ public class TestCommandExecutorInput { assertNotEquals(commandExecutorInput.toString(), null); } + + @Test + public void testGetRuntimeContext() { + RuntimeContext runtime= new RuntimeContext(); + commandExecutorInput.setRuntimeContext(runtime); + assertEquals(runtime, commandExecutorInput.getRuntimeContext()); + } + } -- cgit 1.2.3-korg