6dc0b1861d5113f9fa107574d46ac53ab8f0e5fa
[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  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20 package org.onap.so.bpmn;
21
22 import org.junit.runner.RunWith;
23 import org.mockito.Mock;
24 import org.mockito.junit.MockitoJUnitRunner;
25 import org.onap.so.bpmn.common.InjectionHelper;
26 import org.onap.so.bpmn.common.data.TestDataSetup;
27 import org.onap.so.bpmn.core.UrnPropertiesReader;
28 import org.onap.so.bpmn.infrastructure.flowspecific.tasks.AssignNetworkBBUtils;
29 import org.onap.so.bpmn.infrastructure.workflow.tasks.WorkflowActionExtractResourcesAAI;
30 import org.onap.so.bpmn.servicedecomposition.tasks.BBInputSetup;
31 import org.onap.so.bpmn.servicedecomposition.tasks.BBInputSetupUtils;
32 import org.onap.so.bpmn.servicedecomposition.tasks.ExtractPojosForBB;
33 import org.onap.so.client.aai.AAIResourcesClient;
34 import org.onap.so.client.aai.mapper.AAIObjectMapper;
35 import org.onap.so.client.adapter.network.mapper.NetworkAdapterObjectMapper;
36 import org.onap.so.client.appc.ApplicationControllerAction;
37 import org.onap.so.client.exception.ExceptionBuilder;
38 import org.onap.so.client.orchestration.AAICollectionResources;
39 import org.onap.so.client.orchestration.AAIConfigurationResources;
40 import org.onap.so.client.orchestration.AAIInstanceGroupResources;
41 import org.onap.so.client.orchestration.AAINetworkResources;
42 import org.onap.so.client.orchestration.AAIServiceInstanceResources;
43 import org.onap.so.client.orchestration.AAIVfModuleResources;
44 import org.onap.so.client.orchestration.AAIVnfResources;
45 import org.onap.so.client.orchestration.AAIVolumeGroupResources;
46 import org.onap.so.client.orchestration.AAIVpnBindingResources;
47 import org.onap.so.client.orchestration.NamingServiceResources;
48 import org.onap.so.client.orchestration.NetworkAdapterResources;
49 import org.onap.so.client.orchestration.SDNCNetworkResources;
50 import org.onap.so.client.orchestration.SDNCServiceInstanceResources;
51 import org.onap.so.client.orchestration.SDNCVfModuleResources;
52 import org.onap.so.client.orchestration.SDNCVnfResources;
53 import org.onap.so.client.orchestration.VnfAdapterVfModuleResources;
54 import org.onap.so.client.orchestration.VnfAdapterVolumeGroupResources;
55 import org.onap.so.db.catalog.client.CatalogDbClient;
56 import org.onap.so.db.request.client.RequestsDbClient;
57 import org.springframework.core.env.Environment;
58
59 @RunWith(MockitoJUnitRunner.Silent.class)
60 public abstract class BaseTaskTest extends TestDataSetup {
61         @Mock
62         protected AAIVolumeGroupResources aaiVolumeGroupResources;
63
64         @Mock
65         protected AAIServiceInstanceResources aaiServiceInstanceResources;
66
67         @Mock
68         protected AAIVnfResources aaiVnfResources;
69
70         @Mock
71         protected AAIVfModuleResources aaiVfModuleResources;
72
73         @Mock
74         protected AAIVpnBindingResources aaiVpnBindingResources;
75
76         @Mock
77         protected AAINetworkResources aaiNetworkResources;
78
79         @Mock
80         protected AAICollectionResources aaiCollectionResources;
81
82         @Mock
83         protected NetworkAdapterResources networkAdapterResources;
84
85         @Mock
86         protected VnfAdapterVolumeGroupResources vnfAdapterVolumeGroupResources;
87
88         @Mock
89         protected VnfAdapterVfModuleResources vnfAdapterVfModuleResources;
90
91         @Mock
92         protected SDNCVnfResources sdncVnfResources;
93
94         @Mock
95         protected SDNCNetworkResources sdncNetworkResources;
96
97         @Mock
98         protected SDNCVfModuleResources sdncVfModuleResources;
99
100         @Mock
101         protected SDNCServiceInstanceResources sdncServiceInstanceResources;
102
103         @Mock
104         protected AssignNetworkBBUtils assignNetworkBBUtils;
105
106         @Mock
107         protected NetworkAdapterObjectMapper networkAdapterObjectMapper;
108
109         @Mock
110         protected AAIInstanceGroupResources aaiInstanceGroupResources;
111         
112         @Mock
113         protected NamingServiceResources namingServiceResources;
114
115         @Mock
116         protected ApplicationControllerAction appCClient;
117
118         @Mock
119         protected CatalogDbClient catalogDbClient;
120
121         @Mock
122         protected RequestsDbClient requestsDbClient;
123
124         @Mock
125         protected BBInputSetupUtils bbSetupUtils;
126
127         @Mock
128         protected BBInputSetup bbInputSetup;
129
130         @Mock
131         protected AAIConfigurationResources aaiConfigurationResources;
132
133         @Mock
134         protected AAIObjectMapper MOCK_aaiObjectMapper;
135
136         @Mock
137         protected InjectionHelper MOCK_injectionHelper;
138
139         @Mock
140         protected AAIResourcesClient MOCK_aaiResourcesClient;
141
142         @Mock
143         protected ExtractPojosForBB extractPojosForBB;
144
145         @Mock
146         protected ExceptionBuilder exceptionUtil;
147
148         @Mock
149         protected WorkflowActionExtractResourcesAAI workflowActionUtils;
150         
151         @Mock
152         protected Environment env;
153 }