/**
* Test for equality of validators
*/
public void testIsEqual()
{
RegExpValidator validator = new RegExpValidator();
RegExpValidator otherValidator = new RegExpValidator();
doTestEquals(validator, otherValidator, true);
assertEquals(validator.hashCode(), otherValidator.hashCode());
validator.setPattern("[0-9]");
validator.setMessageDetailNoMatch("\"{0}\" in \"{1}\" failed!! {4}");
otherValidator.setPattern("[0-9]");
otherValidator.setMessageDetailNoMatch("\"{0}\" in \"{1}\" failed!! {4}");
doTestEquals(validator, otherValidator, true);
assertEquals(validator.hashCode(), otherValidator.hashCode());
otherValidator.setPattern(null);
doTestEquals(validator, otherValidator, false);
assertEquals(false, (validator.hashCode() == otherValidator.hashCode()));
}