check that two linkkeys based on the same source/destination pair compare equal . concode_field_sep PortNumber P2 concode_elem_sep DeviceId D2 concode_elem_sep PortNumber P1 concode_elem_sep ConnectPoint SRC1 concode_elem_sep ConnectPoint DST1 concode_elem_sep ConnectPoint DST2 concode_elem_sep DeviceId D1 concode_field_sep void testCompareNotEquals concode_elem_sep void testToString concode_elem_sep void testHashCodeNotEquals concode_elem_sep void testHashCodeEquals concode_elem_sep void testLinkKeyImmutability concode_elem_sep void testNullSrc concode_elem_sep void testNullDst
void function ( ) { LinkKey loc0 = LinkKey . linkKey ( SRC1 , DST2 ) ; LinkKey loc1 = LinkKey . linkKey ( SRC1 , DST2 ) ; assertThat ( loc0 , is ( equalTo ( loc1 ) ) ) ; }