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 "Benoit Tellier (Jira)" <se...@james.apache.org> on 2019/11/04 02:15:00 UTC

[jira] [Created] (JAMES-2960) /server tests should rely on MailImpl, not FakeMail

Benoit Tellier created JAMES-2960:
-------------------------------------

             Summary: /server tests should rely on MailImpl, not FakeMail
                 Key: JAMES-2960
                 URL: https://issues.apache.org/jira/browse/JAMES-2960
             Project: James Server
          Issue Type: Improvement
          Components: Mailet Contributions, tests
            Reporter: Benoit Tellier


While working on JAMES-2927 we tracked down some null values in Cassandra prepared statements. We found some possible null values present only within our tests but that production code completly prevents.

This was due to the use of FakeMail in tests and of MailImpl in production code.

Such diverging behaviours actually decreases the value of our test.

We should perform /server tests with MailImpl in order to minimize the gap between production and tests.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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