* used.
*/
@Test
public void testEqualsDiffImpl()
{
CompareRequest req0 = new CompareRequest()
{
public Value<?> getAssertionValue()
{
return null;
}
public CompareRequest setAssertionValue( String value )
{
return this;
}
public CompareRequest setAssertionValue( byte[] value )
{
return this;
}
public String getAttributeId()
{
return null;
}
public CompareRequest setAttributeId( String attrId )
{
return this;
}
public Dn getName()
{
return null;
}
public CompareRequest setName( Dn name )
{
return this;
}
public MessageTypeEnum getResponseType()
{
return MessageTypeEnum.COMPARE_RESPONSE;
}
public boolean hasResponse()
{
return true;
}
public MessageTypeEnum getType()
{
return MessageTypeEnum.COMPARE_REQUEST;
}
public Map<String, Control> getControls()
{
return EMPTY_CONTROL_MAP;
}
public CompareRequest addControl( Control a_control ) throws MessageException
{
return this;
}
public CompareRequest removeControl( Control a_control ) throws MessageException
{
return this;
}
public int getMessageId()
{
return 5;
}
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 CompareRequest addAbandonListener( AbandonListener listener )
{
return this;
}
public CompareResponse getResultResponse()
{
return null;
}
public CompareRequest addAllControls( Control[] controls ) throws MessageException
{
return this;
}
public boolean hasControl( String oid )
{
return false;
}
public Control getControl( String oid )
{
return null;
}
public CompareRequest setMessageId( int messageId )
{
return this;
}
};
CompareRequestImpl req1 = new CompareRequestImpl();
req1.setMessageId( 5 );
assertTrue( req1.equals( req0 ) );
assertFalse( req0.equals( req1 ) );
}