Refactor CommandExecutorInput to be immutable
[appc.git] / appc-dispatcher / appc-command-executor / appc-command-executor-core / src / test / java / org / openecomp / appc / executor / TestCommandExecutionTask.java
index 0504c39..c26105b 100644 (file)
@@ -275,10 +275,8 @@ public class TestCommandExecutionTask {
        }
 
        private CommandExecutorInput createCommandExecutorInputWithSubObjects() {
-               CommandExecutorInput commandExecutorInput = new CommandExecutorInput();
                RuntimeContext runtimeContext = createRuntimeContextWithSubObjects();
-               commandExecutorInput.setRuntimeContext(runtimeContext);
-               return commandExecutorInput;
+        return new CommandExecutorInput(runtimeContext, 0);
        }
 
        private RuntimeContext createRuntimeContextWithSubObjects() {