Tellier Benoit created JAMES-2267:
-------------------------------------

             Summary: Improve mailet integration test fluency
                 Key: JAMES-2267
                 URL: https://issues.apache.org/jira/browse/JAMES-2267
             Project: James Server
          Issue Type: Improvement
          Components: Mailet Contributions
    Affects Versions: master
            Reporter: Tellier Benoit


We can significantly improve readability by:
 - Providing some defaults for testing mailet configuration. Especially 
`postmaster` and `threads` options
 - Avoid calling `build` method. This can be done explicitly by the target 
method, and result in less boiler plate and more compact code.
 - We can factorize BCC mailet. Its configuration is compulsory, and it's 
content can not be customized.
 - We can get ride of various constants (factorize them and better rely on 
builders capabilities)
 - We can avoid launching a full JMAP server when not needed
 - SMTP and IMAP clients should be test rules. That way, no try with resource 
is needed.
 - We can also clean some configuration there, some user/mailbox creation might 
also not be needed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to