fdfe0ab1be1733d3fff105ac8d7633bf9a944640
[appc.git] / appc-directed-graph / dg-loader / provider / src / test / java / org / onap / sdnc / dg / loader / MockSvcLogicDblibStore.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
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
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  * 
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25 package org.openecomp.sdnc.dg.loader;
26
27 import java.util.Properties;
28
29 import org.onap.ccsdk.sli.core.sli.SvcLogicDblibStore;
30 import org.onap.ccsdk.sli.core.sli.SvcLogicException;
31 import org.onap.ccsdk.sli.core.sli.SvcLogicGraph;
32 import org.onap.ccsdk.sli.core.sli.SvcLogicStore;
33
34 public class MockSvcLogicDblibStore implements SvcLogicStore {
35
36     @Override
37     public boolean hasGraph(String module, String rpc, String version,
38             String mode) {
39         return true;
40     }
41     @Override
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");
49         return retVal;
50         
51     }
52     @Override
53     public void store(SvcLogicGraph graph) throws SvcLogicException {
54
55     }
56     @Override
57     public void init(Properties props) throws SvcLogicException {
58         // TODO Auto-generated method stub
59         
60     }
61     @Override
62     public void registerNodeType(String nodeType) throws SvcLogicException {
63         // TODO Auto-generated method stub
64         
65     }
66     @Override
67     public void unregisterNodeType(String nodeType) throws SvcLogicException {
68         // TODO Auto-generated method stub
69         
70     }
71     @Override
72     public boolean isValidNodeType(String nodeType) throws SvcLogicException {
73         // TODO Auto-generated method stub
74         return true;
75     }
76     @Override
77     public void delete(String module, String rpc, String version, String mode) throws SvcLogicException {
78         // TODO Auto-generated method stub
79         
80     }
81     @Override
82     public void activate(SvcLogicGraph graph) throws SvcLogicException {
83         // TODO Auto-generated method stub
84         
85     }
86 }