summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-07-25 18:36:49 +0530
committerPatrick Brady <pb071s@att.com>2018-07-26 21:36:57 +0000
commitfdf7e648663e5770a431e9ba8088be6c3bbf1f5a (patch)
treeb89082af0541cb1839eca48b73d895b61825ae4d
parent85838e1d38aa022b3a8b04047d772d3c40c34271 (diff)
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 <sandeejh@in.ibm.com>
-rw-r--r--appc-dispatcher/appc-command-executor/appc-command-executor-api/src/test/java/org/onap/appc/executor/objects/TestCommandExecutorInput.java9
1 files changed, 9 insertions, 0 deletions
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());
+ }
+
}