@Test public void testNotEqualsDiffNames() { ExtendedResponse resp0 = createStub(); resp0.setResponseName( "1.2.3.4" ); ExtendedResponse resp1 = createStub(); resp1.setResponseName( "1.2.3.4.5" ); assertFalse( resp0.equals( resp1 ) ); assertFalse( resp1.equals( resp0 ) ); }
@Override public boolean equals( Object obj ) { if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof OpaqueExtendedResponse ) ) { return false; } OpaqueExtendedResponse extendedRequest = ( OpaqueExtendedResponse ) obj; if ( ( ( responseName != null ) && !responseName.equals( extendedRequest.responseName ) ) || ( ( responseName == null ) && ( extendedRequest.responseName != null ) ) ) { return false; } return Arrays.equals( responseValue, extendedRequest.responseValue ); }
OpaqueExtendedResponse extends AbstractExtendedResponse { @Override public boolean equals( Object obj ) { if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof OpaqueExtendedResponse ) ) { return false; } OpaqueExtendedResponse extendedRequest = ( OpaqueExtendedResponse ) obj; if ( ( ( responseName != null ) && !responseName.equals( extendedRequest.responseName ) ) || ( ( responseName == null ) && ( extendedRequest.responseName != null ) ) ) { return false; } return Arrays.equals( responseValue, extendedRequest.responseValue ); } }
OpaqueExtendedResponse extends AbstractExtendedResponse { @Override public boolean equals( Object obj ) { if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof OpaqueExtendedResponse ) ) { return false; } OpaqueExtendedResponse extendedRequest = ( OpaqueExtendedResponse ) obj; if ( ( ( responseName != null ) && !responseName.equals( extendedRequest.responseName ) ) || ( ( responseName == null ) && ( extendedRequest.responseName != null ) ) ) { return false; } return Arrays.equals( responseValue, extendedRequest.responseValue ); } OpaqueExtendedResponse();  OpaqueExtendedResponse( int messageId );  OpaqueExtendedResponse( String responseName );  OpaqueExtendedResponse( int messageId, String responseName ); }
OpaqueExtendedResponse extends AbstractExtendedResponse { @Override public boolean equals( Object obj ) { if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof OpaqueExtendedResponse ) ) { return false; } OpaqueExtendedResponse extendedRequest = ( OpaqueExtendedResponse ) obj; if ( ( ( responseName != null ) && !responseName.equals( extendedRequest.responseName ) ) || ( ( responseName == null ) && ( extendedRequest.responseName != null ) ) ) { return false; } return Arrays.equals( responseValue, extendedRequest.responseValue ); } OpaqueExtendedResponse();  OpaqueExtendedResponse( int messageId );  OpaqueExtendedResponse( String responseName );  OpaqueExtendedResponse( int messageId, String responseName ); byte[] getResponseValue(); void setResponseValue( byte[] responseValue ); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString(); }
OpaqueExtendedResponse extends AbstractExtendedResponse { @Override public boolean equals( Object obj ) { if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof OpaqueExtendedResponse ) ) { return false; } OpaqueExtendedResponse extendedRequest = ( OpaqueExtendedResponse ) obj; if ( ( ( responseName != null ) && !responseName.equals( extendedRequest.responseName ) ) || ( ( responseName == null ) && ( extendedRequest.responseName != null ) ) ) { return false; } return Arrays.equals( responseValue, extendedRequest.responseValue ); } OpaqueExtendedResponse();  OpaqueExtendedResponse( int messageId );  OpaqueExtendedResponse( String responseName );  OpaqueExtendedResponse( int messageId, String responseName ); byte[] getResponseValue(); void setResponseValue( byte[] responseValue ); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString();  }