Unit Testing JAXB Objects?
I need to write some unit tests with junit to validate that two JAXB objects are identical. I've read that the .equals() on the JAXB object will not work here for some reason. I could write a sorter to sort the object data and then implicitly test each attribute, but that seems like the wrong approach since the JAXB object could change. I've gotten one idea of using the Jakarta EqualsBuilder but I figured I would post a question here to see how you all test your JAXB objects.
Thanks in advance,