override hashCode for sonar
[vfc/nfvo/driver/sfc.git] / zte / sfc-driver / sfc-driver / src / test / java / org / onap / sfc / entity / portpair / PortInfoTest.java
index 7d20b5c..9093d98 100644 (file)
@@ -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