diff options
Diffstat (limited to 'zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/entity/portpair')
2 files changed, 4 insertions, 0 deletions
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 diff --git a/zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/entity/portpair/ServiceFunctionParameterTest.java b/zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/entity/portpair/ServiceFunctionParameterTest.java index 0a85f7e..0eceaac 100644 --- a/zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/entity/portpair/ServiceFunctionParameterTest.java +++ b/zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/entity/portpair/ServiceFunctionParameterTest.java @@ -43,6 +43,8 @@ public class ServiceFunctionParameterTest { public void equals() throws Exception { assert !entity2.equals(entity1); assert entity2.equals(entity2); + assert entity2.hashCode() == entity2.hashCode(); + assert entity2.hashCode() != entity1.hashCode(); } @Test |