/**
* Test for equality of converters
*/
public void testEquals()
{
ColorConverter converter = new ColorConverter();
ColorConverter otherConverter = new ColorConverter();
doTestEquals(converter, otherConverter, true);
String[] patterns = {"rrr,ggg,bbb", "rrr-ggg-bbb"};
String[] otherPatterns = {"rrr,ggg,bbb", "rrr-ggg-bbb"};
converter.setPatterns(patterns);
converter.setMessageDetailConvert("Test message detail");
otherConverter.setMessageDetailConvert("Test message detail");
otherConverter.setPatterns(otherPatterns);
doTestEquals(converter, otherConverter, true);
String[] newPattern = {"#RRGGBB", "RR.GG.BB"};
otherConverter.setPatterns(newPattern);
doTestEquals(converter, otherConverter, false);
// check by modifiying the tranisent to be differnt
// patterns are same
otherConverter.setPatterns(otherPatterns);
otherConverter.setTransient(true);
doTestEquals(converter, otherConverter, false);
// transient same, patterns same, but allowsTransparent diff
otherConverter.setTransient(false);
otherConverter.setTransparentAllowed(true);
doTestEquals(converter, otherConverter, false);
}