Added oparent to sdc main
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / test / java / org / openecomp / sdc / vendorsoftwareproduct / impl / mock / EnrichmentManagerFactoryImpl.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 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
21 package org.openecomp.sdc.vendorsoftwareproduct.impl.mock;
22
23
24 import org.openecomp.core.enrichment.api.EnrichmentManager;
25 import org.openecomp.core.enrichment.factory.EnrichmentManagerFactory;
26 import org.openecomp.core.enrichment.types.EntityInfo;
27 import org.openecomp.sdc.datatypes.error.ErrorMessage;
28 import org.openecomp.sdc.versioning.dao.types.Version;
29
30 import java.util.List;
31 import java.util.Map;
32
33
34 public class EnrichmentManagerFactoryImpl extends EnrichmentManagerFactory {
35
36   @Override
37   public EnrichmentManager createInterface() {
38     return new EnrichmentManagerMock();
39   }
40
41   public class EnrichmentManagerMock implements EnrichmentManager {
42     @Override
43     public Map<String, List<ErrorMessage>> enrich() {
44       return null;
45     }
46
47     @Override
48     public void addEntityInfo(String entityKey, EntityInfo entityInfo) {
49
50     }
51
52     @Override
53     public void init(String key, Version version) {
54
55     }
56
57     @Override
58     public Object getModel() {
59       return null;
60     }
61
62     @Override
63     public void setModel(Object model) {
64
65     }
66   }
67 }