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