Announcement Announcement Module
Collapse
No announcement yet.
Could SimpleMailMessage implement .equals() ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Could SimpleMailMessage implement .equals() ?

    I was unittesting a class that accepted a SimpleMailMessage, made a copy using the constructor, set a field or two then passed it to a MailSender.

    I found that I couldn't easily assert two distinct SimpleMailMessages to be equal since it doesn't implement equals(). Is there any chance it could do so in the future?

    Obviously not critical, but it would be handy!

    Cheers,

    Tim

  • #2
    If this is deemed worthwhile, I created Jira issue SPR-417 and attached a patch for SimpleMailMessage and a unit test.

    Tim

    Comment

    Working...
    X