73896d7d6d14d5493b644247fc610bc7c97341b2
[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.core.UrnPropertiesReader;
30 import org.onap.so.bpmn.infrastructure.flowspecific.tasks.AssignNetworkBBUtils;
31 import org.onap.so.bpmn.infrastructure.workflow.tasks.WorkflowActionExtractResourcesAAI;
32 import org.onap.so.bpmn.servicedecomposition.tasks.BBInputSetup;
33 import org.onap.so.bpmn.servicedecomposition.tasks.BBInputSetupUtils;
34 import org.onap.so.bpmn.servicedecomposition.tasks.ExtractPojosForBB;
35 import org.onap.so.client.aai.AAIResourcesClient;
36 import org.onap.so.client.aai.mapper.AAIObjectMapper;
37 import org.onap.so.client.adapter.network.mapper.NetworkAdapterObjectMapper;
38 import org.onap.so.client.appc.ApplicationControllerAction;
39 import org.onap.so.client.exception.ExceptionBuilder;
40 import org.onap.so.client.namingservice.NamingRequestObject;
41 import org.onap.so.client.orchestration.AAICollectionResources;
42 import org.onap.so.client.orchestration.AAIConfigurationResources;
43 import org.onap.so.client.orchestration.AAIInstanceGroupResources;
44 import org.onap.so.client.orchestration.AAINetworkResources;
45 import org.onap.so.client.orchestration.AAIPnfResources;
46 import org.onap.so.client.orchestration.AAIServiceInstanceResources;
47 import org.onap.so.client.orchestration.AAIVfModuleResources;
48 import org.onap.so.client.orchestration.AAIVnfResources;
49 import org.onap.so.client.orchestration.AAIVolumeGroupResources;
50 import org.onap.so.client.orchestration.AAIVpnBindingResources;
51 import org.onap.so.client.orchestration.NamingServiceResources;
52 import org.onap.so.client.orchestration.NetworkAdapterResources;
53 import org.onap.so.client.orchestration.SDNCNetworkResources;
54 import org.onap.so.client.orchestration.SDNCServiceInstanceResources;
55 import org.onap.so.client.orchestration.SDNCVfModuleResources;
56 import org.onap.so.client.orchestration.SDNCVnfResources;
57 import org.onap.so.client.orchestration.VnfAdapterVfModuleResources;
58 import org.onap.so.client.orchestration.VnfAdapterVolumeGroupResources;
59 import org.onap.so.db.catalog.client.CatalogDbClient;
60 import org.onap.so.db.request.client.RequestsDbClient;
61 import org.springframework.core.env.Environment;
62
63 @RunWith(MockitoJUnitRunner.Silent.class)
64 public abstract class BaseTaskTest extends TestDataSetup {
65     @Mock
66     protected AAIVolumeGroupResources aaiVolumeGroupResources;
67
68     @Mock
69     protected AAIServiceInstanceResources aaiServiceInstanceResources;
70
71     @Mock
72     protected AAIVnfResources aaiVnfResources;
73
74     @Mock
75     protected AAIPnfResources aaiPnfResources;
76
77     @Mock
78     protected AAIVfModuleResources aaiVfModuleResources;
79
80     @Mock
81     protected AAIVpnBindingResources aaiVpnBindingResources;
82
83     @Mock
84     protected AAINetworkResources aaiNetworkResources;
85
86     @Mock
87     protected AAICollectionResources aaiCollectionResources;
88
89     @Mock
90     protected NetworkAdapterResources networkAdapterResources;
91
92     @Mock
93     protected VnfAdapterVolumeGroupResources vnfAdapterVolumeGroupResources;
94
95     @Mock
96     protected VnfAdapterVfModuleResources vnfAdapterVfModuleResources;
97
98     @Mock
99     protected SDNCVnfResources sdncVnfResources;
100
101     @Mock
102     protected SDNCNetworkResources sdncNetworkResources;
103
104     @Mock
105     protected SDNCVfModuleResources sdncVfModuleResources;
106
107     @Mock
108     protected SDNCServiceInstanceResources sdncServiceInstanceResources;
109
110     @Mock
111     protected AssignNetworkBBUtils assignNetworkBBUtils;
112
113     @Mock
114     protected NetworkAdapterObjectMapper networkAdapterObjectMapper;
115
116     @Mock
117     protected AAIInstanceGroupResources aaiInstanceGroupResources;
118
119     @Mock
120     protected NamingServiceResources namingServiceResources;
121
122     @Mock
123     protected ApplicationControllerAction appCClient;
124
125     @Mock
126     protected CatalogDbClient catalogDbClient;
127
128     @Mock
129     protected RequestsDbClient requestsDbClient;
130
131     @Mock
132     protected BBInputSetupUtils bbSetupUtils;
133
134     @Mock
135     protected BBInputSetup bbInputSetup;
136
137     @Mock
138     protected AAIConfigurationResources aaiConfigurationResources;
139
140     @Mock
141     protected AAIObjectMapper MOCK_aaiObjectMapper;
142
143     @Mock
144     protected InjectionHelper MOCK_injectionHelper;
145
146     @Mock
147     protected AAIResourcesClient MOCK_aaiResourcesClient;
148
149     @Mock
150     protected ExtractPojosForBB extractPojosForBB;
151
152     @Mock
153     protected ExceptionBuilder exceptionUtil;
154
155     @Mock
156     protected WorkflowActionExtractResourcesAAI workflowActionUtils;
157
158     @Mock
159     protected Environment env;
160
161     @Mock
162     protected NamingRequestObject namingRequestObject;
163
164 }