* Tests to make sure changes in the controls result in inequality.
*/
@Test
public void testNotEqualsDiffControls()
{
AbstractMessage msg0;
AbstractMessage msg1;
msg0 = new AbstractMessage( 5, MessageTypeEnum.BIND_REQUEST )
{
private static final long serialVersionUID = 1L;
};
msg0.addControl( new Control()
{
private static final long serialVersionUID = 1L;
public boolean isCritical()
{
return false;
}
public void setCritical( boolean isCritical )
{
}
public String getOid()
{
return "0.0";
}
} );
msg1 = new AbstractMessage( 5, MessageTypeEnum.BIND_REQUEST )
{
private static final long serialVersionUID = 1L;
};
assertFalse( msg0.equals( msg1 ) );
assertFalse( msg1.equals( msg0 ) );
}