ed2fb98856eca3717e4c07276f572718bc49b296
[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     public DummyPfKey() {
37         // Default constructor
38     }
39
40     public DummyPfKey(DummyPfKey source) {
41         super(source);
42     }
43
44     @Override
45     public int compareTo(PfConcept arg0) {
46         return 0;
47     }
48
49     @Override
50     public String getId() {
51         return null;
52     }
53
54     @Override
55     public boolean isNullKey() {
56         return false;
57     }
58
59     @Override
60     public Compatibility getCompatibility(PfKey otherKey) {
61         return null;
62     }
63
64     @Override
65     public boolean isCompatible(PfKey otherKey) {
66         return false;
67     }
68
69     @Override
70     public PfKey getKey() {
71         return null;
72     }
73
74     @Override
75     public List<PfKey> getKeys() {
76         return Arrays.asList(getKey());
77     }
78
79     @Override
80     public PfValidationResult validate(PfValidationResult result) {
81         return null;
82     }
83
84     @Override
85     public void clean() {
86         // nothing to do
87     }
88
89     @Override
90     public boolean equals(Object otherObject) {
91         return false;
92     }
93
94     @Override
95     public String toString() {
96         return "";
97     }
98
99     @Override
100     public int hashCode() {
101         return 0;
102     }
103
104     @Override
105     public boolean isNewerThan(@NonNull PfKey otherKey) {
106         // TODO Auto-generated method stub
107         return false;
108     }
109
110     @Override
111     public int getMajorVersion() {
112         return 0;
113     }
114
115     @Override
116     public int getMinorVersion() {
117         return 0;
118     }
119
120     @Override
121     public int getPatchVersion() {
122         return 0;
123     }
124 }