diff options
author | Patrick Brady <pb071s@att.com> | 2017-04-20 21:10:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-04-20 21:10:43 +0000 |
commit | b06810bb67667edb0d9d9087cc1f978bda988c87 (patch) | |
tree | 3d5bdba464b3156a4ba24c03aa83897816985171 /appc-dispatcher/appc-command-executor/appc-command-executor-core/src/test/java | |
parent | f061217a2cfe6030cf147c852a4d6d183e7fb2e0 (diff) | |
parent | c9373d8f5809fe650c30832e9409282cb34688f8 (diff) |
Merge "Refactor Status to be immutable"
Diffstat (limited to 'appc-dispatcher/appc-command-executor/appc-command-executor-core/src/test/java')
-rw-r--r-- | appc-dispatcher/appc-command-executor/appc-command-executor-core/src/test/java/org/openecomp/appc/executor/TestCommandExecutionTask.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/appc-dispatcher/appc-command-executor/appc-command-executor-core/src/test/java/org/openecomp/appc/executor/TestCommandExecutionTask.java b/appc-dispatcher/appc-command-executor/appc-command-executor-core/src/test/java/org/openecomp/appc/executor/TestCommandExecutionTask.java index cd0167934..3e01c758b 100644 --- a/appc-dispatcher/appc-command-executor/appc-command-executor-core/src/test/java/org/openecomp/appc/executor/TestCommandExecutionTask.java +++ b/appc-dispatcher/appc-command-executor/appc-command-executor-core/src/test/java/org/openecomp/appc/executor/TestCommandExecutionTask.java @@ -191,9 +191,7 @@ public class TestCommandExecutionTask { requestContext.setAction(action); runtimeContext.setRpcName(action.name().toLowerCase()); commonHeader.setApiVer(API_VERSION); - Status status = new Status(); - status.setCode(100); - responseContext.setStatus(status); + responseContext.setStatus(new Status(100, null)); commonHeader.setRequestId(responseId); responseContext.setPayload(payload); commonHeader.setTimestamp(new Date()); @@ -246,7 +244,7 @@ public class TestCommandExecutionTask { ResponseContext responseContext = createResponseContextWithSuObjects(); wfResponse.setResponseContext(responseContext); responseContext.setPayload(""); - wfResponse.getResponseContext().getStatus().setCode(100); + wfResponse.getResponseContext().setStatus(new Status(100, null)); return wfResponse; } @@ -300,9 +298,8 @@ public class TestCommandExecutionTask { ResponseContext responseContext = new ResponseContext(); CommonHeader commonHeader = new CommonHeader(); Flags flags = new Flags(); - Status status = new Status(); responseContext.setCommonHeader(commonHeader); - responseContext.setStatus(status); + responseContext.setStatus(new Status(0, null)); commonHeader.setFlags(flags); return responseContext; } |