Skip to content

Commit

Permalink
fixup! Replace field injection by injection by constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaechler committed Nov 24, 2023
1 parent 8584d40 commit f3de397
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f3de397

Please sign in to comment.