Loading mail/protocols/smtp/src/test/java/com/fsck/k9/mail/transport/smtp/SmtpTransportTest.java +3 −3 Original line number Diff line number Diff line Loading @@ -845,7 +845,7 @@ public class SmtpTransportTest { } @Test public void sendMessagePipelining_with250and550ReplyforRecipients_shouldThrow() throws Exception { public void sendMessagePipelining_with250and550ReplyforRecipients_shouldThrowFirst() throws Exception { Message message = getMessageWithTwoRecipients(); MockSmtpServer server = createServerAndSetupForPlainAuthentication("PIPELINING"); server.expect("MAIL FROM:<user@localhost>"); Loading @@ -853,7 +853,7 @@ public class SmtpTransportTest { server.expect("RCPT TO:<user3@localhost>"); server.expect("DATA"); server.output("250 OK"); server.output("250 OK"); server.output("550 remote mail to <user2@localhost> not allowed"); server.output("550 remote mail to <user3@localhost> not allowed"); server.output("354 End data with <CR><LF>.<CR><LF>"); server.expect("."); Loading @@ -868,7 +868,7 @@ public class SmtpTransportTest { fail("Expected exception"); } catch (NegativeSmtpReplyException e) { assertEquals(550, e.getReplyCode()); assertEquals("remote mail to <user3@localhost> not allowed", e.getReplyText()); assertEquals("remote mail to <user2@localhost> not allowed", e.getReplyText()); } server.verifyConnectionClosed(); Loading Loading
mail/protocols/smtp/src/test/java/com/fsck/k9/mail/transport/smtp/SmtpTransportTest.java +3 −3 Original line number Diff line number Diff line Loading @@ -845,7 +845,7 @@ public class SmtpTransportTest { } @Test public void sendMessagePipelining_with250and550ReplyforRecipients_shouldThrow() throws Exception { public void sendMessagePipelining_with250and550ReplyforRecipients_shouldThrowFirst() throws Exception { Message message = getMessageWithTwoRecipients(); MockSmtpServer server = createServerAndSetupForPlainAuthentication("PIPELINING"); server.expect("MAIL FROM:<user@localhost>"); Loading @@ -853,7 +853,7 @@ public class SmtpTransportTest { server.expect("RCPT TO:<user3@localhost>"); server.expect("DATA"); server.output("250 OK"); server.output("250 OK"); server.output("550 remote mail to <user2@localhost> not allowed"); server.output("550 remote mail to <user3@localhost> not allowed"); server.output("354 End data with <CR><LF>.<CR><LF>"); server.expect("."); Loading @@ -868,7 +868,7 @@ public class SmtpTransportTest { fail("Expected exception"); } catch (NegativeSmtpReplyException e) { assertEquals(550, e.getReplyCode()); assertEquals("remote mail to <user3@localhost> not allowed", e.getReplyText()); assertEquals("remote mail to <user2@localhost> not allowed", e.getReplyText()); } server.verifyConnectionClosed(); Loading