james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Maurer ...@byteaction.de>
Subject Re: Mail interface
Date Sat, 10 Jun 2006 14:14:45 GMT
Am Samstag, den 10.06.2006, 15:05 +0200 schrieb Stefano Bagnara:
> 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

This is exactly what i did.. I was just intressted why there is not such
method..


bye
Norman


Mime
View raw message