From f3de3975d14d04bb60c5259287016d702b949d3c Mon Sep 17 00:00:00 2001 From: Matthieu Baechler Date: Fri, 12 May 2023 15:16:18 +0200 Subject: [PATCH] fixup! Replace field injection by injection by constructor --- .../java/org/apache/james/smtpserver/FutureReleaseTest.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/protocols/protocols-smtp/src/test/java/org/apache/james/smtpserver/FutureReleaseTest.java b/server/protocols/protocols-smtp/src/test/java/org/apache/james/smtpserver/FutureReleaseTest.java index bd0f4fc17be..7ccd6bca6c5 100644 --- a/server/protocols/protocols-smtp/src/test/java/org/apache/james/smtpserver/FutureReleaseTest.java +++ b/server/protocols/protocols-smtp/src/test/java/org/apache/james/smtpserver/FutureReleaseTest.java @@ -135,15 +135,11 @@ protected void createMailRepositoryStore() throws Exception { mailRepositoryStore.init(); } - protected SMTPServer createSMTPServer(SmtpMetricsImpl smtpMetrics) { - return new SMTPServer(smtpMetrics, dnsServer, chain, fileSystem); - } - protected void setUpSMTPServer() { SmtpMetricsImpl smtpMetrics = mock(SmtpMetricsImpl.class); when(smtpMetrics.getCommandsMetric()).thenReturn(mock(Metric.class)); when(smtpMetrics.getConnectionMetric()).thenReturn(mock(Metric.class)); - smtpServer = createSMTPServer(smtpMetrics); + smtpServer = new SMTPServer(smtpMetrics, dnsServer, chain, fileSystem); } protected void setUpFakeLoader() {