Merge "Add Legacy Op Policy Persistence"
[policy/models.git] / models-base / src / test / java / org / onap / policy / models / base / testconcepts / DummyPfKey.java
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2019 Nordix Foundation.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.models.base.testconcepts;
22
23 import java.util.Arrays;
24 import java.util.List;
25
26 import lombok.NonNull;
27
28 import org.onap.policy.models.base.PfConcept;
29 import org.onap.policy.models.base.PfKey;
30 import org.onap.policy.models.base.PfValidationResult;
31
32 public class DummyPfKey extends PfKey {
33     private static final long serialVersionUID = 1L;
34
35     @Override
36     public int compareTo(PfConcept arg0) {
37         return 0;
38     }
39
40     @Override
41     public String getId() {
42         return null;
43     }
44
45     @Override
46     public boolean isNullKey() {
47         return false;
48     }
49
50     @Override
51     public Compatibility getCompatibility(PfKey otherKey) {
52         return null;
53     }
54
55     @Override
56     public boolean isCompatible(PfKey otherKey) {
57         return false;
58     }
59
60     @Override
61     public PfKey getKey() {
62         return null;
63     }
64
65     @Override
66     public List<PfKey> getKeys() {
67         return Arrays.asList(getKey());
68     }
69
70     @Override
71     public PfValidationResult validate(PfValidationResult result) {
72         return null;
73     }
74
75     @Override
76     public void clean() {
77
78     }
79
80     @Override
81     public boolean equals(Object otherObject) {
82         return false;
83     }
84
85     @Override
86     public String toString() {
87         return null;
88     }
89
90     @Override
91     public int hashCode() {
92         return 0;
93     }
94
95     @Override
96     public PfConcept copyTo(PfConcept target) {
97         return null;
98     }
99
100     @Override
101     public boolean isNewerThan(@NonNull PfKey otherKey) {
102         // TODO Auto-generated method stub
103         return false;
104     }
105
106     @Override
107     public int getMajorVersion() {
108         return 0;
109     }
110
111     @Override
112     public int getMinorVersion() {
113         return 0;
114     }
115
116     @Override
117     public int getPatchVersion() {
118         return 0;
119     }
120 }