You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Tellier Benoit (JIRA)" <se...@james.apache.org> on 2018/01/05 04:03:00 UTC
[jira] [Resolved] (JAMES-2267) Improve mailet integration test
fluency
[ https://issues.apache.org/jira/browse/JAMES-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tellier Benoit resolved JAMES-2267.
-----------------------------------
Resolution: Fixed
https://github.com/linagora/james-project/pull/1200 solved the issue
> 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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org