This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit a36539ecca60e95aa24597cc32ca739e7abb18d7 Author: Tran Tien Duc <[email protected]> AuthorDate: Fri Dec 13 17:27:44 2019 +0700 [Refactoring] Spring: Replacing NoopMetricFactory by RecordingMetricFactory --- mailbox/spring/pom.xml | 3 ++- mailbox/spring/src/test/resources/META-INF/spring/metrics.xml | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/mailbox/spring/pom.xml b/mailbox/spring/pom.xml index 998bf28..df883f2 100644 --- a/mailbox/spring/pom.xml +++ b/mailbox/spring/pom.xml @@ -76,7 +76,8 @@ </dependency> <dependency> <groupId>${james.groupId}</groupId> - <artifactId>metrics-logger</artifactId> + <artifactId>metrics-tests</artifactId> + <scope>test</scope> </dependency> <dependency> <groupId>${james.groupId}</groupId> diff --git a/mailbox/spring/src/test/resources/META-INF/spring/metrics.xml b/mailbox/spring/src/test/resources/META-INF/spring/metrics.xml index 159a9f9..4576596 100644 --- a/mailbox/spring/src/test/resources/META-INF/spring/metrics.xml +++ b/mailbox/spring/src/test/resources/META-INF/spring/metrics.xml @@ -22,9 +22,6 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> - <bean id="metricRegistry" class="com.codahale.metrics.MetricRegistry" /> - <bean id="metricFactory" class="org.apache.james.metrics.dropwizard.DropWizardMetricFactory"> - <constructor-arg index="0" ref="metricRegistry"/> - </bean> + <bean id="metricFactory" class="org.apache.james.metrics.tests.RecordingMetricFactory" /> </beans> \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
