delete redundant test dependency
[so.git] / bpmn / so-bpmn-tasks / src / test / java / org / onap / so / bpmn / BaseTaskTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Modifications Copyright (c) 2020 Nokia
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 package org.onap.so.bpmn;
23
24 import org.junit.runner.RunWith;
25 import org.mockito.Mock;
26 import org.mockito.junit.MockitoJUnitRunner;
27 import org.onap.so.bpmn.common.InjectionHelper;
28 import org.onap.so.bpmn.common.data.TestDataSetup;
29 import org.onap.so.bpmn.infrastructure.flowspecific.tasks.AssignNetworkBBUtils;
30 import org.onap.so.bpmn.infrastructure.workflow.tasks.ebb.loader.WorkflowActionExtractResourcesAAI;
31 import org.onap.so.bpmn.servicedecomposition.tasks.BBInputSetup;
32 import org.onap.so.bpmn.servicedecomposition.tasks.BBInputSetupUtils;
33 import org.onap.so.bpmn.servicedecomposition.tasks.ExtractPojosForBB;
34 import org.onap.aaiclient.client.aai.AAIResourcesClient;
35 import org.onap.so.client.aai.mapper.AAIObjectMapper;
36 import org.onap.so.client.adapter.network.mapper.NetworkAdapterObjectMapper;
37 import org.onap.so.client.appc.ApplicationControllerAction;
38 import org.onap.so.client.exception.ExceptionBuilder;
39 import org.onap.so.client.namingservice.NamingRequestObject;
40 import org.onap.so.client.orchestration.AAICollectionResources;
41 import org.onap.so.client.orchestration.AAIConfigurationResources;
42 import org.onap.so.client.orchestration.AAIInstanceGroupResources;
43 import org.onap.so.client.orchestration.AAINetworkResources;
44 import org.onap.so.client.orchestration.AAIPnfResources;
45 import org.onap.so.client.orchestration.AAIServiceInstanceResources;
46 import org.onap.so.client.orchestration.AAIVfModuleResources;
47 import org.onap.so.client.orchestration.AAIVnfResources;
48 import org.onap.so.client.orchestration.AAIVolumeGroupResources;
49 import org.onap.so.client.orchestration.AAIVpnBindingResources;
50 import org.onap.so.client.orchestration.NamingServiceResources;
51 import org.onap.so.client.orchestration.NetworkAdapterResources;
52 import org.onap.so.client.orchestration.SDNCNetworkResources;
53 import org.onap.so.client.orchestration.SDNCServiceInstanceResources;
54 import org.onap.so.client.orchestration.SDNCVfModuleResources;
55 import org.onap.so.client.orchestration.SDNCVnfResources;
56 import org.onap.so.client.orchestration.VnfAdapterVfModuleResources;
57 import org.onap.so.client.orchestration.VnfAdapterVolumeGroupResources;
58 import org.onap.so.db.catalog.client.CatalogDbClient;
59 import org.onap.so.db.request.client.RequestsDbClient;
60 import org.springframework.core.env.Environment;
61
62 // deprecated because of task SO-3772, this class will be deleted after all its usage is removed
63 @Deprecated
64 @RunWith(MockitoJUnitRunner.Silent.class)
65 public abstract class BaseTaskTest extends TestDataSetup {
66     @Mock
67     protected AAIVolumeGroupResources aaiVolumeGroupResources;
68
69     @Mock
70     protected AAIServiceInstanceResources aaiServiceInstanceResources;
71
72     @Mock
73     protected AAIVnfResources aaiVnfResources;
74
75     @Mock
76     protected AAIPnfResources aaiPnfResources;
77
78     @Mock
79     protected AAIVfModuleResources aaiVfModuleResources;
80
81     @Mock
82     protected AAIVpnBindingResources aaiVpnBindingResources;
83
84     @Mock
85     protected AAINetworkResources aaiNetworkResources;
86
87     @Mock
88     protected AAICollectionResources aaiCollectionResources;
89
90     @Mock
91     protected NetworkAdapterResources networkAdapterResources;
92
93     @Mock
94     protected VnfAdapterVolumeGroupResources vnfAdapterVolumeGroupResources;
95
96     @Mock
97     protected VnfAdapterVfModuleResources vnfAdapterVfModuleResources;
98
99     @Mock
100     protected SDNCVnfResources sdncVnfResources;
101
102     @Mock
103     protected SDNCNetworkResources sdncNetworkResources;
104
105     @Mock
106     protected SDNCVfModuleResources sdncVfModuleResources;
107
108     @Mock
109     protected SDNCServiceInstanceResources sdncServiceInstanceResources;
110
111     @Mock
112     protected AssignNetworkBBUtils assignNetworkBBUtils;
113
114     @Mock
115     protected NetworkAdapterObjectMapper networkAdapterObjectMapper;
116
117     @Mock
118     protected AAIInstanceGroupResources aaiInstanceGroupResources;
119
120     @Mock
121     protected NamingServiceResources namingServiceResources;
122
123     @Mock
124     protected ApplicationControllerAction appCClient;
125
126     @Mock
127     protected CatalogDbClient catalogDbClient;
128
129     @Mock
130     protected RequestsDbClient requestsDbClient;
131
132     @Mock
133     protected BBInputSetupUtils bbSetupUtils;
134
135     @Mock
136     protected BBInputSetup bbInputSetup;
137
138     @Mock
139     protected AAIConfigurationResources aaiConfigurationResources;
140
141     @Mock
142     protected AAIObjectMapper MOCK_aaiObjectMapper;
143
144     @Mock
145     protected InjectionHelper MOCK_injectionHelper;
146
147     @Mock
148     protected AAIResourcesClient MOCK_aaiResourcesClient;
149
150     @Mock
151     protected ExtractPojosForBB extractPojosForBB;
152
153     @Mock
154     protected ExceptionBuilder exceptionUtil;
155
156     @Mock
157     protected WorkflowActionExtractResourcesAAI workflowActionUtils;
158
159     @Mock
160     protected Environment env;
161
162     @Mock
163     protected NamingRequestObject namingRequestObject;
164 }