aboutsummaryrefslogtreecommitdiffstats
path: root/models-base/src/test/java/org
diff options
context:
space:
mode:
authorHenry.Sun <henry.a.sun@est.tech>2019-08-07 03:41:50 +0000
committerHenry.Sun <henry.a.sun@est.tech>2019-08-07 03:41:50 +0000
commitb7909b8e74c0bc5920f5d0397a4371988df9e8b2 (patch)
tree3307c4c2c260c0ea975aceb6c5a5eedbb6aa5230 /models-base/src/test/java/org
parent52d2377853af5eb2acba40381e61de17f3fe0d29 (diff)
replace hashCode function with compareTo
Issue-ID: POLICY-1600 Change-Id: If660cbe84424e492b6db3ab11ef97b37f046b3aa Signed-off-by: Henry.Sun <henry.a.sun@est.tech>
Diffstat (limited to 'models-base/src/test/java/org')
-rw-r--r--models-base/src/test/java/org/onap/policy/models/base/PfKeyTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/models-base/src/test/java/org/onap/policy/models/base/PfKeyTest.java b/models-base/src/test/java/org/onap/policy/models/base/PfKeyTest.java
index 9ef1aeb75..fca73b0d6 100644
--- a/models-base/src/test/java/org/onap/policy/models/base/PfKeyTest.java
+++ b/models-base/src/test/java/org/onap/policy/models/base/PfKeyTest.java
@@ -136,7 +136,7 @@ public class PfKeyTest {
.hasMessage("otherObj is marked @NonNull but is null");
assertEquals(0, someKey0.compareTo(someKey0));
- assertEquals(266127751, someKey0.compareTo(new DummyPfKey()));
+ assertEquals(-36, someKey0.compareTo(new DummyPfKey()));
assertFalse(someKey0.equals(null));
assertTrue(someKey0.equals(someKey0));