Tellier Benoit created JAMES-2865:
-------------------------------------

             Summary: Implementing a MockSmtpServer
                 Key: JAMES-2865
                 URL: https://issues.apache.org/jira/browse/JAMES-2865
             Project: James Server
          Issue Type: Sub-task
          Components: Remote Delivery, tests
            Reporter: Tellier Benoit


Draft version [here](https://github.com/linagora/james-project/pull/2545)

The MockSmtpServer should match these criteria:
 - can return error responses
 - can return error responses but actually still success to deliver the mails 
(450 - server retry and will be success)
 - act like a simple smtp server if no mock setup, when mails come, save them 
in to the memory

Regarding the behaviour:
 - a behaviour can be applied to all given commands or a subset of them 
(condition)
 - A number of answer can be specified, after X answers the behaviour will no 
longer be applied.

You need to rely on the following POJOs : see JAMES-2853



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to