From 394929613dd177b9715553faa3aa4d35eacf57d1 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Sat, 29 Feb 2020 14:34:53 -0500 Subject: Guard Actor is adding the wrong type of Operator The Guard Actor should be adding a GuardOperator, but it was adding an HttpOperator, instead. Fixed the code. Issue-ID: POLICY-2350 Signed-off-by: Jim Hahn Change-Id: I03517e993442da13a4dbd1eb0c4a0318b0c1c9f2 --- .../policy/controlloop/actor/guard/GuardActorServiceProviderTest.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'models-interactions/model-actors/actor.guard/src/test/java') diff --git a/models-interactions/model-actors/actor.guard/src/test/java/org/onap/policy/controlloop/actor/guard/GuardActorServiceProviderTest.java b/models-interactions/model-actors/actor.guard/src/test/java/org/onap/policy/controlloop/actor/guard/GuardActorServiceProviderTest.java index bb5d4ddf8..6721ff7d0 100644 --- a/models-interactions/model-actors/actor.guard/src/test/java/org/onap/policy/controlloop/actor/guard/GuardActorServiceProviderTest.java +++ b/models-interactions/model-actors/actor.guard/src/test/java/org/onap/policy/controlloop/actor/guard/GuardActorServiceProviderTest.java @@ -21,6 +21,7 @@ package org.onap.policy.controlloop.actor.guard; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; import java.util.Arrays; import java.util.stream.Collectors; @@ -41,5 +42,7 @@ public class GuardActorServiceProviderTest extends BasicActor { // verify that it all plugs into the ActorService verifyActorService(GuardActorServiceProvider.NAME, "service.yaml"); + + assertTrue(prov.getOperator(GuardOperation.NAME) instanceof GuardOperator); } } -- cgit 1.2.3-korg