From 5ae90a9bf72d2d6dbb163c3dbea5474b657be7e7 Mon Sep 17 00:00:00 2001 From: Tarun Tej Velaga Date: Tue, 15 Aug 2017 13:20:02 +0000 Subject: Policy-yaml changes Changes to Policy-yaml and sdc projects based on changes from policy/engine. Issue-Id: POLICY-88 Change-Id: Ic1a58f00029b9a66db6980fc7732a2ac57390229 Signed-off-by: Tarun Tej Velaga --- .../controlloop/eventmanager/ControlLoopOperationManagerTest.java | 4 ++-- .../onap/policy/controlloop/processor/ControlLoopProcessorTest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'controlloop/common/eventmanager/src/test/java') diff --git a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManagerTest.java b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManagerTest.java index 1cb8b5a5d..fd7540ae7 100644 --- a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManagerTest.java +++ b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManagerTest.java @@ -65,7 +65,7 @@ public class ControlLoopOperationManagerTest { // Load up the policy // final Util.Pair pair = Util.loadYaml("src/test/resources/test.yaml"); - onset.closedLoopControlName = pair.a.controlLoop.controlLoopName; + onset.closedLoopControlName = pair.a.getControlLoop().getControlLoopName(); try { // // Create a processor @@ -173,7 +173,7 @@ public class ControlLoopOperationManagerTest { // Load up the policy // final Util.Pair pair = Util.loadYaml("src/test/resources/test.yaml"); - onset.closedLoopControlName = pair.a.controlLoop.controlLoopName; + onset.closedLoopControlName = pair.a.getControlLoop().getControlLoopName(); try { // // Create a processor diff --git a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/processor/ControlLoopProcessorTest.java b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/processor/ControlLoopProcessorTest.java index 2ed216658..6000ca831 100644 --- a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/processor/ControlLoopProcessorTest.java +++ b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/processor/ControlLoopProcessorTest.java @@ -68,7 +68,7 @@ public class ControlLoopProcessorTest { } Policy policy = processor.getCurrentPolicy(); assertNotNull(policy); - System.out.println("current policy is: " + policy.id + " " + policy.name); + System.out.println("current policy is: " + policy.getId() + " " + policy.getName()); processor.nextPolicyForResult(PolicyResult.SUCCESS); } } @@ -84,7 +84,7 @@ public class ControlLoopProcessorTest { } Policy policy = processor.getCurrentPolicy(); assertNotNull(policy); - System.out.println("current policy is: " + policy.id + " " + policy.name); + System.out.println("current policy is: " + policy.getId() + " " + policy.getName()); processor.nextPolicyForResult(PolicyResult.FAILURE); } } -- cgit 1.2.3-korg