76cadffa6fda9c2200844b88426bfcaf7b34374a
[policy/models.git] / models-interactions / model-actors / actorServiceProvider / src / test / java / org / onap / policy / controlloop / actorserviceprovider / DummyActor.java
1 /*-
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
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
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=========================================================
21  */
22
23 package org.onap.policy.controlloop.actorserviceprovider;
24
25 import java.util.ArrayList;
26 import java.util.List;
27 import org.onap.policy.controlloop.actorserviceprovider.impl.ActorImpl;
28
29 public class DummyActor extends ActorImpl {
30
31     public DummyActor() {
32         super(DummyActor.class.getSimpleName());
33     }
34
35     @Override
36     public String actor() {
37         return this.getClass().getSimpleName();
38     }
39
40     @Override
41     public List<String> recipes() {
42         List<String> recipeList = new ArrayList<>();
43         recipeList.add("Dorothy");
44         recipeList.add("Wizard");
45
46         return recipeList;
47     }
48
49     @Override
50     public List<String> recipeTargets(String recipe) {
51         List<String> recipeTargetList = new ArrayList<>();
52         recipeTargetList.add("Wicked Witch");
53         recipeTargetList.add("Wizard of Oz");
54
55         return recipeTargetList;
56     }
57
58     @Override
59     public List<String> recipePayloads(String recipe) {
60         List<String> recipePayloadList = new ArrayList<>();
61         recipePayloadList.add("Dorothy");
62         recipePayloadList.add("Toto");
63
64         return recipePayloadList;
65     }
66 }