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 "Rene Cordier (JIRA)" <se...@james.apache.org> on 2019/04/01 03:39:00 UTC

[jira] [Created] (JAMES-2706) Normalize metric contract testing

Rene Cordier created JAMES-2706:
-----------------------------------

             Summary: Normalize metric contract testing
                 Key: JAMES-2706
                 URL: https://issues.apache.org/jira/browse/JAMES-2706
             Project: James Server
          Issue Type: Improvement
            Reporter: Rene Cordier


We developed a `RecordingMetricFactory` and a `RecordingTimeMetric` classes for testing pre-deletion hooks metrics here : https://github.com/linagora/james-project/pull/2246

It would be cool to try to extend it to other metrics testings, instead of using mocks.

Thus you should :

* extract those classes
* refactor all metrics tests to use the new structure instead of mocks
* rework on metric test classes if necessary



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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