Norman Maurer wrote:
Hi guys,

i just wonder if there is any reason why the mail interface not provide
a method to set the sender of an email. Like "setSender(MailAddress
sender)"..
I ask this cause i notice it while working on junit tests for SenderIs..

Can I ask why do you need a setSender method in the Mail interface?

If you're creating a test for SenderIs then you create the Mail object, so you can create it using the implementation that you prefer.

Probably you simply have to add a constructor to the "MockMail" object with the sender, or add a setSender(MailAddress sender) to the MockMail object.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to