checkout cvs and have a look at some tests we're starting to write in 
jakarta-james/tests/
EndToEnd is the beginning of a test which will create a user account, deliver many 
messages via SMTP, then attempt to download them using POP.

> -----Original Message-----
> From: Alain Ravet [mailto:alain.ravet.list@;wanadoo.be]
> Sent: 22 October 2002 21:41
> To: [EMAIL PROTECTED]
> Subject: James - or - write a mock POP server ?
> 
> 
> Hi,
> 
> (This may be slightly OT, you decide)
> 
> 
> Currently, I'm writing a POP client-like class.
> 
> To test it, I
>    0/ launch James on localhost (1 time, for all tests)
> 
> and, for  each test,
>    1/ delete all messages from the test account
>    2/ send - SMTP - messages to the test account
>    3/ wait a little
> 
>    3/ run one test :
>      (It makes POP call(s) to the test account, on localhost.)
> 
> 
> The steps 1,2,3 are a pain. They are slow, and I run into timing problems.
> A better solution would be a Mock POP server.
> 
>     s = new MockPopServer (110) ;
>     s.loadSimpleMessage ("[EMAIL PROTECTED]",
>               "[EMAIL PROTECTED]", "subject 1", "..body");
>     s.loadSimpleMessage ("[EMAIL PROTECTED]",
>               "[EMAIL PROTECTED]", "subject 2", "..body");
> 
> 
> Advantage : faster, simpler, deterministic.
> 
> 
> Question :
> ----------
> Before I start writing it,
>   - Does it exists somewhere?
>   - Can I use James in a simpler way, to serve that purpose.
> 
> 
> Alain Ravet
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:james-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:james-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org>

Reply via email to