@Test public void testEqualsSameObject() { SearchResultEntryImpl resp = new SearchResultEntryImpl( 5 ); assertTrue( resp.equals( resp ), "the same object should be equal" ); }
@Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof SearchResultEntry ) ) { return false; } SearchResultEntry resp = ( SearchResultEntry ) obj; return entry.equals( resp.getEntry() ); }
SearchResultEntryImpl extends AbstractResponse implements SearchResultEntry { @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof SearchResultEntry ) ) { return false; } SearchResultEntry resp = ( SearchResultEntry ) obj; return entry.equals( resp.getEntry() ); } }
SearchResultEntryImpl extends AbstractResponse implements SearchResultEntry { @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof SearchResultEntry ) ) { return false; } SearchResultEntry resp = ( SearchResultEntry ) obj; return entry.equals( resp.getEntry() ); } SearchResultEntryImpl();  SearchResultEntryImpl( final int id ); }
SearchResultEntryImpl extends AbstractResponse implements SearchResultEntry { @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof SearchResultEntry ) ) { return false; } SearchResultEntry resp = ( SearchResultEntry ) obj; return entry.equals( resp.getEntry() ); } SearchResultEntryImpl();  SearchResultEntryImpl( final int id ); @Override Entry getEntry(); @Override void setEntry( Entry entry ); @Override Dn getObjectName(); @Override void setObjectName( Dn objectName ); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString(); }
SearchResultEntryImpl extends AbstractResponse implements SearchResultEntry { @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof SearchResultEntry ) ) { return false; } SearchResultEntry resp = ( SearchResultEntry ) obj; return entry.equals( resp.getEntry() ); } SearchResultEntryImpl();  SearchResultEntryImpl( final int id ); @Override Entry getEntry(); @Override void setEntry( Entry entry ); @Override Dn getObjectName(); @Override void setObjectName( Dn objectName ); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString();  }