package org.onap.policy.controlloop.actor.guard;
import org.onap.policy.controlloop.actorserviceprovider.impl.HttpActor;
-import org.onap.policy.controlloop.actorserviceprovider.impl.HttpOperator;
import org.onap.policy.controlloop.actorserviceprovider.impl.OperationPartial;
public class GuardActorServiceProvider extends HttpActor<GuardActorParams> {
public GuardActorServiceProvider() {
super(NAME, GuardActorParams.class);
- addOperator(new HttpOperator(NAME, GuardOperation.NAME, GuardOperation::new));
+ addOperator(new GuardOperator(NAME, GuardOperation.NAME, GuardOperation::new));
}
}
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;
// verify that it all plugs into the ActorService
verifyActorService(GuardActorServiceProvider.NAME, "service.yaml");
+
+ assertTrue(prov.getOperator(GuardOperation.NAME) instanceof GuardOperator);
}
}