@Test public void testEqualsDiffImpl() { ModifyDnRequest req0 = new ModifyDnRequest() { public Dn getName() { try { return new Dn( "dc=admins,dc=apache,dc=org" ); } catch ( LdapException ine ) { return null; } } public ModifyDnRequest setName( Dn name ) { return this; } public Rdn getNewRdn() { try { return new Rdn( "dc=administrators" ); } catch ( LdapException ine ) { return null; } } public ModifyDnRequest setNewRdn( Rdn newRdn ) { return this; } public boolean getDeleteOldRdn() { return true; } public ModifyDnRequest setDeleteOldRdn( boolean deleteOldRdn ) { return this; } public Dn getNewSuperior() { try { return new Dn( "dc=groups,dc=apache,dc=org" ); } catch ( LdapException ine ) { return null; } } public ModifyDnRequest setNewSuperior( Dn newSuperior ) { return this; } public boolean isMove() { return false; } public MessageTypeEnum getResponseType() { return MessageTypeEnum.MODIFYDN_RESPONSE; } public boolean hasResponse() { return true; } public MessageTypeEnum getType() { return MessageTypeEnum.MODIFYDN_REQUEST; } public Map<String, Control> getControls() { return EMPTY_CONTROL_MAP; } public ModifyDnRequest addControl( Control a_control ) { return this; } public ModifyDnRequest removeControl( Control a_control ) { return this; } public int getMessageId() { return 45; } public Object get( Object a_key ) { return null; } public Object put( Object a_key, Object a_value ) { return null; } public void abandon() { } public boolean isAbandoned() { return false; } public ModifyDnRequest addAbandonListener( AbandonListener listener ) { return this; } public ModifyDnResponse getResultResponse() { return null; } public ModifyDnRequest addAllControls( Control[] controls ) { return this; } public boolean hasControl( String oid ) { return false; } public Control getControl( String oid ) { return null; } public ModifyDnRequest setMessageId( int messageId ) { return this; } }; ModifyDnRequestImpl req1 = getRequest(); assertTrue( req1.equals( req0 ) ); }
@Override public boolean equals( Object obj ) { if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } ModifyDnRequest req = ( ModifyDnRequest ) obj; if ( name != null && req.getName() == null ) { return false; } if ( name == null && req.getName() != null ) { return false; } if ( name != null && req.getName() != null && !name.equals( req.getName() ) ) { return false; } if ( deleteOldRdn != req.getDeleteOldRdn() ) { return false; } if ( newRdn != null && req.getNewRdn() == null ) { return false; } if ( newRdn == null && req.getNewRdn() != null ) { return false; } if ( newRdn != null && req.getNewRdn() != null && !newRdn.equals( req.getNewRdn() ) ) { return false; } if ( newSuperior != null && req.getNewSuperior() == null ) { return false; } if ( newSuperior == null && req.getNewSuperior() != null ) { return false; } return ( newSuperior == null ) || ( req.getNewSuperior() == null ) || newSuperior.equals( req .getNewSuperior() ); }
ModifyDnRequestImpl extends AbstractAbandonableRequest implements ModifyDnRequest { @Override public boolean equals( Object obj ) { if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } ModifyDnRequest req = ( ModifyDnRequest ) obj; if ( name != null && req.getName() == null ) { return false; } if ( name == null && req.getName() != null ) { return false; } if ( name != null && req.getName() != null && !name.equals( req.getName() ) ) { return false; } if ( deleteOldRdn != req.getDeleteOldRdn() ) { return false; } if ( newRdn != null && req.getNewRdn() == null ) { return false; } if ( newRdn == null && req.getNewRdn() != null ) { return false; } if ( newRdn != null && req.getNewRdn() != null && !newRdn.equals( req.getNewRdn() ) ) { return false; } if ( newSuperior != null && req.getNewSuperior() == null ) { return false; } if ( newSuperior == null && req.getNewSuperior() != null ) { return false; } return ( newSuperior == null ) || ( req.getNewSuperior() == null ) || newSuperior.equals( req .getNewSuperior() ); } }
ModifyDnRequestImpl extends AbstractAbandonableRequest implements ModifyDnRequest { @Override public boolean equals( Object obj ) { if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } ModifyDnRequest req = ( ModifyDnRequest ) obj; if ( name != null && req.getName() == null ) { return false; } if ( name == null && req.getName() != null ) { return false; } if ( name != null && req.getName() != null && !name.equals( req.getName() ) ) { return false; } if ( deleteOldRdn != req.getDeleteOldRdn() ) { return false; } if ( newRdn != null && req.getNewRdn() == null ) { return false; } if ( newRdn == null && req.getNewRdn() != null ) { return false; } if ( newRdn != null && req.getNewRdn() != null && !newRdn.equals( req.getNewRdn() ) ) { return false; } if ( newSuperior != null && req.getNewSuperior() == null ) { return false; } if ( newSuperior == null && req.getNewSuperior() != null ) { return false; } return ( newSuperior == null ) || ( req.getNewSuperior() == null ) || newSuperior.equals( req .getNewSuperior() ); } ModifyDnRequestImpl(); }
ModifyDnRequestImpl extends AbstractAbandonableRequest implements ModifyDnRequest { @Override public boolean equals( Object obj ) { if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } ModifyDnRequest req = ( ModifyDnRequest ) obj; if ( name != null && req.getName() == null ) { return false; } if ( name == null && req.getName() != null ) { return false; } if ( name != null && req.getName() != null && !name.equals( req.getName() ) ) { return false; } if ( deleteOldRdn != req.getDeleteOldRdn() ) { return false; } if ( newRdn != null && req.getNewRdn() == null ) { return false; } if ( newRdn == null && req.getNewRdn() != null ) { return false; } if ( newRdn != null && req.getNewRdn() != null && !newRdn.equals( req.getNewRdn() ) ) { return false; } if ( newSuperior != null && req.getNewSuperior() == null ) { return false; } if ( newSuperior == null && req.getNewSuperior() != null ) { return false; } return ( newSuperior == null ) || ( req.getNewSuperior() == null ) || newSuperior.equals( req .getNewSuperior() ); } ModifyDnRequestImpl(); @Override boolean getDeleteOldRdn(); @Override ModifyDnRequest setDeleteOldRdn( boolean deleteOldRdn ); @Override boolean isMove(); @Override Dn getName(); @Override ModifyDnRequest setName( Dn name ); @Override Rdn getNewRdn(); @Override ModifyDnRequest setNewRdn( Rdn newRdn ); @Override Dn getNewSuperior(); @Override ModifyDnRequest setNewSuperior( Dn newSuperior ); @Override ModifyDnRequest setMessageId( int messageId ); @Override ModifyDnRequest addControl( Control control ); @Override ModifyDnRequest addAllControls( Control[] controls ); @Override ModifyDnRequest removeControl( Control control ); @Override MessageTypeEnum getResponseType(); @Override ModifyDnResponse getResultResponse(); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString(); }
ModifyDnRequestImpl extends AbstractAbandonableRequest implements ModifyDnRequest { @Override public boolean equals( Object obj ) { if ( obj == this ) { return true; } if ( !super.equals( obj ) ) { return false; } ModifyDnRequest req = ( ModifyDnRequest ) obj; if ( name != null && req.getName() == null ) { return false; } if ( name == null && req.getName() != null ) { return false; } if ( name != null && req.getName() != null && !name.equals( req.getName() ) ) { return false; } if ( deleteOldRdn != req.getDeleteOldRdn() ) { return false; } if ( newRdn != null && req.getNewRdn() == null ) { return false; } if ( newRdn == null && req.getNewRdn() != null ) { return false; } if ( newRdn != null && req.getNewRdn() != null && !newRdn.equals( req.getNewRdn() ) ) { return false; } if ( newSuperior != null && req.getNewSuperior() == null ) { return false; } if ( newSuperior == null && req.getNewSuperior() != null ) { return false; } return ( newSuperior == null ) || ( req.getNewSuperior() == null ) || newSuperior.equals( req .getNewSuperior() ); } ModifyDnRequestImpl(); @Override boolean getDeleteOldRdn(); @Override ModifyDnRequest setDeleteOldRdn( boolean deleteOldRdn ); @Override boolean isMove(); @Override Dn getName(); @Override ModifyDnRequest setName( Dn name ); @Override Rdn getNewRdn(); @Override ModifyDnRequest setNewRdn( Rdn newRdn ); @Override Dn getNewSuperior(); @Override ModifyDnRequest setNewSuperior( Dn newSuperior ); @Override ModifyDnRequest setMessageId( int messageId ); @Override ModifyDnRequest addControl( Control control ); @Override ModifyDnRequest addAllControls( Control[] controls ); @Override ModifyDnRequest removeControl( Control control ); @Override MessageTypeEnum getResponseType(); @Override ModifyDnResponse getResultResponse(); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString();  }