From b7909b8e74c0bc5920f5d0397a4371988df9e8b2 Mon Sep 17 00:00:00 2001 From: "Henry.Sun" Date: Wed, 7 Aug 2019 03:41:50 +0000 Subject: replace hashCode function with compareTo Issue-ID: POLICY-1600 Change-Id: If660cbe84424e492b6db3ab11ef97b37f046b3aa Signed-off-by: Henry.Sun --- models-base/src/test/java/org/onap/policy/models/base/PfKeyTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models-base/src/test') 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)); -- cgit 1.2.3-korg