chibenwa commented on PR #2337:
URL: https://github.com/apache/james-project/pull/2337#issuecomment-2255358155

   Also I would like to see 
   
   ```
       @Test
       void remoteDeliveryShouldNotSetupDefaultValueWhenNone(DockerMockSmtp 
mockSmtp) throws Exception {
           AuthenticatingSMTPClient smtpClient = new 
AuthenticatingSMTPClient("TLS", "UTF-8");
           try {
               smtpClient.connect("localhost", 
jamesServer.getProbe(SmtpGuiceProbe.class).getSmtpPort().getValue());
               smtpClient.auth(PLAIN, FROM, PASSWORD);
               smtpClient.ehlo(DEFAULT_DOMAIN);
               smtpClient.mail("<" + FROM + ">");
               smtpClient.rcpt("<" + RECIPIENT + ">");
               smtpClient.sendShortMessageData("A short message...");
           } finally {
               smtpClient.disconnect();
           }
   
           calmlyAwait.atMost(TEN_SECONDS).untilAsserted(() -> 
assertThat(mockSmtp.getConfigurationClient().listMails())
               .hasSize(1)
               .extracting(Mail::getEnvelope)
               .containsExactly(Mail.Envelope.builder()
                   .from(new MailAddress(FROM))
                   .addRecipient(Mail.Recipient.builder()
                       .address(new MailAddress(RECIPIENT))
                       .build())
                   .build()));
       }
   ```
   
   As a test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to