From 8039c0bae81eb34b397e389573aa83168aa350b5 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Fri, 3 May 2019 13:57:11 -0400 Subject: Decision should return dictionary Should not be an array of policies, should be a dictionary. Issue-ID: POLICY-1735 Change-Id: Ia88ef65dd332933aafbe6b57693344d5d43c53b8 Signed-off-by: Pamela Dragosh --- .../src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models-interactions/model-simulators/src/main/java') diff --git a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java index a2a06a4fb..25606eef1 100644 --- a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java +++ b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java @@ -56,13 +56,13 @@ public class GuardSimulatorJaxRs { response.setStatus("Deny"); response.setAdvice(Collections.emptyMap()); response.setObligations(Collections.emptyMap()); - response.setPolicies(Collections.emptyList()); + response.setPolicies(Collections.emptyMap()); return response; } else { response.setStatus("Permit"); response.setAdvice(Collections.emptyMap()); response.setObligations(Collections.emptyMap()); - response.setPolicies(Collections.emptyList()); + response.setPolicies(Collections.emptyMap()); return response; } } -- cgit 1.2.3-korg