From 51814384b801b5479582cc190065a44e9c866279 Mon Sep 17 00:00:00 2001 From: sonicke <10112215@zte.com.cn> Date: Tue, 26 Feb 2019 16:18:32 +0800 Subject: override hashCode for sonar Issue-ID: VFC-1264 Change-Id: I0881451ead3bf6c8e5e5c04781ea8d0cb6869081 Signed-off-by: Zhuoyao Huang <10112215@zte.com.cn> --- .../src/test/java/org/onap/sfc/entity/portpair/PortInfoTest.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/entity/portpair/PortInfoTest.java') diff --git a/zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/entity/portpair/PortInfoTest.java b/zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/entity/portpair/PortInfoTest.java index 7d20b5c..9093d98 100644 --- a/zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/entity/portpair/PortInfoTest.java +++ b/zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/entity/portpair/PortInfoTest.java @@ -49,6 +49,8 @@ public class PortInfoTest { public void equals() throws Exception { assert !portInfo2.equals(portInfo1); assert portInfo2.equals(portInfo2); + assert portInfo2.hashCode() == portInfo2.hashCode(); + assert portInfo2.hashCode() != portInfo1.hashCode(); } @Test -- cgit 1.2.3-korg