2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 package org.onap.so.bpmn;
22 import org.junit.runner.RunWith;
23 import org.mockito.Mock;
24 import org.mockito.Spy;
25 import org.mockito.junit.MockitoJUnitRunner;
26 import org.onap.so.bpmn.common.InjectionHelper;
27 import org.onap.so.bpmn.common.data.TestDataSetup;
28 import org.onap.so.bpmn.infrastructure.flowspecific.tasks.AssignNetworkBBUtils;
29 import org.onap.so.bpmn.servicedecomposition.tasks.BBInputSetup;
30 import org.onap.so.bpmn.servicedecomposition.tasks.BBInputSetupUtils;
31 import org.onap.so.bpmn.servicedecomposition.tasks.ExtractPojosForBB;
32 import org.onap.so.client.aai.AAIResourcesClient;
33 import org.onap.so.client.aai.mapper.AAIObjectMapper;
34 import org.onap.so.client.adapter.network.mapper.NetworkAdapterObjectMapper;
35 import org.onap.so.client.appc.ApplicationControllerAction;
36 import org.onap.so.client.exception.ExceptionBuilder;
37 import org.onap.so.client.orchestration.AAICollectionResources;
38 import org.onap.so.client.orchestration.AAIConfigurationResources;
39 import org.onap.so.client.orchestration.AAIInstanceGroupResources;
40 import org.onap.so.client.orchestration.AAINetworkResources;
41 import org.onap.so.client.orchestration.AAIServiceInstanceResources;
42 import org.onap.so.client.orchestration.AAIVfModuleResources;
43 import org.onap.so.client.orchestration.AAIVnfResources;
44 import org.onap.so.client.orchestration.AAIVolumeGroupResources;
45 import org.onap.so.client.orchestration.AAIVpnBindingResources;
46 import org.onap.so.client.orchestration.NetworkAdapterResources;
47 import org.onap.so.client.orchestration.SDNCNetworkResources;
48 import org.onap.so.client.orchestration.SDNCServiceInstanceResources;
49 import org.onap.so.client.orchestration.SDNCVfModuleResources;
50 import org.onap.so.client.orchestration.SDNCVnfResources;
51 import org.onap.so.client.orchestration.VnfAdapterVfModuleResources;
52 import org.onap.so.client.orchestration.VnfAdapterVolumeGroupResources;
53 import org.onap.so.client.sdnc.SDNCClient;
54 import org.onap.so.db.catalog.client.CatalogDbClient;
55 import org.onap.so.db.request.client.RequestsDbClient;
56 import org.springframework.boot.test.mock.mockito.MockBean;
58 @RunWith(MockitoJUnitRunner.Silent.class)
59 public abstract class BaseTaskTest extends TestDataSetup {
61 protected AAIVolumeGroupResources aaiVolumeGroupResources;
64 protected AAIServiceInstanceResources aaiServiceInstanceResources;
67 protected AAIVnfResources aaiVnfResources;
70 protected AAIVfModuleResources aaiVfModuleResources;
73 protected AAIVpnBindingResources aaiVpnBindingResources;
76 protected AAINetworkResources aaiNetworkResources;
79 protected AAICollectionResources aaiCollectionResources;
82 protected NetworkAdapterResources networkAdapterResources;
85 protected VnfAdapterVolumeGroupResources vnfAdapterVolumeGroupResources;
88 protected VnfAdapterVfModuleResources vnfAdapterVfModuleResources;
91 protected SDNCVnfResources sdncVnfResources;
94 protected SDNCNetworkResources sdncNetworkResources;
97 protected SDNCVfModuleResources sdncVfModuleResources;
100 protected SDNCServiceInstanceResources sdncServiceInstanceResources;
103 protected AssignNetworkBBUtils assignNetworkBBUtils;
106 protected NetworkAdapterObjectMapper networkAdapterObjectMapper;
109 protected AAIInstanceGroupResources aaiInstanceGroupResources;
112 protected ApplicationControllerAction appCClient;
115 protected CatalogDbClient catalogDbClient;
118 protected RequestsDbClient requestsDbClient;
121 protected BBInputSetupUtils bbSetupUtils;
124 protected BBInputSetup bbInputSetup;
127 protected AAIConfigurationResources aaiConfigurationResources;
130 protected AAIObjectMapper MOCK_aaiObjectMapper;
133 protected InjectionHelper MOCK_injectionHelper;
136 protected AAIResourcesClient MOCK_aaiResourcesClient;
139 protected ExtractPojosForBB extractPojosForBB;
142 protected ExceptionBuilder exceptionUtil;