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() {