diff options
author | Jim Hahn <jrh3@att.com> | 2020-06-02 16:46:47 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2020-06-02 16:56:28 -0400 |
commit | 58f6742563ee9b20051d402598bd724eee62ae8b (patch) | |
tree | f786c78056bda54ddcdad2256f15c1eb17aa1fe5 /models-interactions/model-actors/actor.so/src | |
parent | b6bef44f519f1da5d31daf5406a7c57d3d192218 (diff) |
Change Actor makeCoder() to getCoder()
Issue-ID: POLICY-2603
Change-Id: I29d5c73f4b8b129bfdd6d0c9fb6d766b260e27c4
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-interactions/model-actors/actor.so/src')
3 files changed, 4 insertions, 4 deletions
diff --git a/models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoOperation.java b/models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoOperation.java index 7f8a5c5c4..a8900f76b 100644 --- a/models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoOperation.java +++ b/models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoOperation.java @@ -489,7 +489,7 @@ public abstract class SoOperation extends HttpOperation<SoResponse> { } @Override - protected Coder makeCoder() { + protected Coder getCoder() { return coder; } diff --git a/models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/VfModuleDelete.java b/models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/VfModuleDelete.java index 04f0287b7..9dbdc58d8 100644 --- a/models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/VfModuleDelete.java +++ b/models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/VfModuleDelete.java @@ -165,7 +165,7 @@ public class VfModuleDelete extends SoOperation { // propagate "cancel" to the future controller.add(future); - future.thenApply(response -> new RestManagerResponse(response.statusCode(), response.body(), makeCoder())) + future.thenApply(response -> new RestManagerResponse(response.statusCode(), response.body(), getCoder())) .whenComplete((resp, thrown) -> { if (thrown != null) { callback.failed(thrown); diff --git a/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/SoOperationTest.java b/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/SoOperationTest.java index 9e72c8aaf..b794eab4e 100644 --- a/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/SoOperationTest.java +++ b/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/SoOperationTest.java @@ -431,8 +431,8 @@ public class SoOperationTest extends BasicSoOperation { } @Test - public void testMakeCoder() throws CoderException { - Coder opcoder = oper.makeCoder(); + public void testGetCoder() throws CoderException { + Coder opcoder = oper.getCoder(); // ensure we can decode an SO timestamp String json = "{'request':{'finishTime':'Fri, 15 May 2020 12:14:21 GMT'}}"; |