diff options
Diffstat (limited to 'models-interactions/model-actors/actor.so/src/test')
2 files changed, 2 insertions, 18 deletions
diff --git a/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/VfModuleCreateTest.java b/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/VfModuleCreateTest.java index 8c084b8dc..1d5d44cc8 100644 --- a/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/VfModuleCreateTest.java +++ b/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/VfModuleCreateTest.java @@ -132,15 +132,7 @@ public class VfModuleCreateTest extends BasicSoOperation { Map<String, Object> payload = captor.getValue().getPayload(); assertNotNull(payload); - @SuppressWarnings("unchecked") - Map<String, Object> resource = (Map<String, Object>) payload.get("resource"); - assertNotNull(resource); - - @SuppressWarnings("unchecked") - Map<String, Object> guard = (Map<String, Object>) resource.get("guard"); - assertNotNull(guard); - - Integer newCount = (Integer) guard.get(VfModuleCreate.PAYLOAD_KEY_VF_COUNT); + Integer newCount = (Integer) payload.get(VfModuleCreate.PAYLOAD_KEY_VF_COUNT); assertNotNull(newCount); assertEquals(origCount + 1, newCount.intValue()); } diff --git a/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/VfModuleDeleteTest.java b/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/VfModuleDeleteTest.java index c08fa37d1..cb2bceffd 100644 --- a/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/VfModuleDeleteTest.java +++ b/models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/VfModuleDeleteTest.java @@ -166,15 +166,7 @@ public class VfModuleDeleteTest extends BasicSoOperation { Map<String, Object> payload = captor.getValue().getPayload(); assertNotNull(payload); - @SuppressWarnings("unchecked") - Map<String, Object> resource = (Map<String, Object>) payload.get("resource"); - assertNotNull(resource); - - @SuppressWarnings("unchecked") - Map<String, Object> guard = (Map<String, Object>) resource.get("guard"); - assertNotNull(guard); - - Integer newCount = (Integer) guard.get(VfModuleDelete.PAYLOAD_KEY_VF_COUNT); + Integer newCount = (Integer) payload.get(VfModuleDelete.PAYLOAD_KEY_VF_COUNT); assertNotNull(newCount); assertEquals(origCount - 1, newCount.intValue()); } |