2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Copyright (C) 2017 Amdocs
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 * ============LICENSE_END=========================================================
25 package org.openecomp.sdnc.dg.loader;
27 import java.util.Properties;
29 import org.openecomp.sdnc.sli.SvcLogicDblibStore;
30 import org.openecomp.sdnc.sli.SvcLogicException;
31 import org.openecomp.sdnc.sli.SvcLogicGraph;
32 import org.openecomp.sdnc.sli.SvcLogicStore;
34 public class MockSvcLogicDblibStore implements SvcLogicStore {
37 public boolean hasGraph(String module, String rpc, String version,
42 public SvcLogicGraph fetch(String module, String rpc, String version,
43 String mode) throws SvcLogicException {
44 SvcLogicGraph retVal=new SvcLogicGraph();
45 retVal.setMode("sync");
46 retVal.setModule("Appc");
47 retVal.setRpc("unitTestDG");
48 retVal.setVersion("4.0.0");
53 public void store(SvcLogicGraph graph) throws SvcLogicException {
57 public void init(Properties props) throws SvcLogicException {
58 // TODO Auto-generated method stub
62 public void registerNodeType(String nodeType) throws SvcLogicException {
63 // TODO Auto-generated method stub
67 public void unregisterNodeType(String nodeType) throws SvcLogicException {
68 // TODO Auto-generated method stub
72 public boolean isValidNodeType(String nodeType) throws SvcLogicException {
73 // TODO Auto-generated method stub
77 public void delete(String module, String rpc, String version, String mode) throws SvcLogicException {
78 // TODO Auto-generated method stub
82 public void activate(SvcLogicGraph graph) throws SvcLogicException {
83 // TODO Auto-generated method stub