Results 1 to 2 of 2

Thread: Could SimpleMailMessage implement .equals() ?

  1. #1
    Join Date
    Sep 2004
    Location
    San Diego, CA
    Posts
    49

    Default 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. #2
    Join Date
    Sep 2004
    Location
    San Diego, CA
    Posts
    49

    Default

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

    Tim

Similar Threads

  1. Replies: 19
    Last Post: Aug 26th, 2010, 03:53 PM
  2. How to implement a custom BeanFactory?
    By ttlaitin in forum Architecture
    Replies: 4
    Last Post: Feb 10th, 2010, 11:24 AM
  3. Replies: 6
    Last Post: Jun 13th, 2005, 02:04 AM
  4. Replies: 2
    Last Post: Nov 22nd, 2004, 04:07 PM
  5. Making SimpleMailMessage serializable?
    By dhalbrook in forum Architecture
    Replies: 2
    Last Post: Sep 13th, 2004, 10:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •