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>

Reply via email to