added test case to TestCommandExecuterInput.java 39/57539/4
authorSandeep J <sandeejh@in.ibm.com>
Wed, 25 Jul 2018 13:06:49 +0000 (18:36 +0530)
committerPatrick Brady <pb071s@att.com>
Thu, 26 Jul 2018 21:36:57 +0000 (21:36 +0000)
added test case to increase code coverage

Issue-ID: APPC-1086
Change-Id: Iad87297e2f52c7a14bfa178ab6be4a841604715d
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
appc-dispatcher/appc-command-executor/appc-command-executor-api/src/test/java/org/onap/appc/executor/objects/TestCommandExecutorInput.java

index fd15114..3d31310 100644 (file)
@@ -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());
 
+    }
+    
 }