2 * ============LICENSE_START=======================================================
3 * TestActorServiceProvider
4 * ================================================================================
5 * Copyright (C) 2018 Ericsson. All rights reserved.
6 * Modifications Copyright (C) 2019 Nordix Foundation.
7 * Modifications Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
8 * ================================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
23 package org.onap.policy.controlloop.actorserviceprovider;
25 import java.util.ArrayList;
26 import java.util.List;
27 import org.onap.policy.controlloop.actorserviceprovider.impl.ActorImpl;
29 public class DummyActor extends ActorImpl {
32 super(DummyActor.class.getSimpleName());
36 public String actor() {
37 return this.getClass().getSimpleName();
41 public List<String> recipes() {
42 List<String> recipeList = new ArrayList<>();
43 recipeList.add("Dorothy");
44 recipeList.add("Wizard");
50 public List<String> recipeTargets(String recipe) {
51 List<String> recipeTargetList = new ArrayList<>();
52 recipeTargetList.add("Wicked Witch");
53 recipeTargetList.add("Wizard of Oz");
55 return recipeTargetList;
59 public List<String> recipePayloads(String recipe) {
60 List<String> recipePayloadList = new ArrayList<>();
61 recipePayloadList.add("Dorothy");
62 recipePayloadList.add("Toto");
64 return recipePayloadList;