From 58f6742563ee9b20051d402598bd724eee62ae8b Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 2 Jun 2020 16:46:47 -0400 Subject: Change Actor makeCoder() to getCoder() Issue-ID: POLICY-2603 Change-Id: I29d5c73f4b8b129bfdd6d0c9fb6d766b260e27c4 Signed-off-by: Jim Hahn --- .../main/java/org/onap/policy/controlloop/actor/so/SoOperation.java | 2 +- .../java/org/onap/policy/controlloop/actor/so/VfModuleDelete.java | 2 +- .../java/org/onap/policy/controlloop/actor/so/SoOperationTest.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'models-interactions/model-actors/actor.so/src') 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 { } @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'}}"; -- cgit 1.2.3-korg