chibenwa commented on code in PR #1501:
URL: https://github.com/apache/james-project/pull/1501#discussion_r1168162196


##########
server/protocols/protocols-smtp/src/test/java/org/apache/james/smtpserver/FutureReleaseTest.java:
##########
@@ -184,6 +178,15 @@ void tearDown() {
         smtpServer.destroy();
     }
 
+    @Test
+    void cannotAuthenticateWhenSendingWrongPassword() throws Exception {
+        SMTPClient smtpProtocol = new SMTPClient();
+        InetSocketAddress bindedAddress = new 
ProtocolServerUtils(smtpServer).retrieveBindedAddress();
+        smtpProtocol.connect(bindedAddress.getAddress().getHostAddress(), 
bindedAddress.getPort());
+        smtpProtocol.sendCommand("AUTH PLAIN");
+        smtpProtocol.sendCommand("Wrong Password");
+        assertThat(smtpProtocol.getReplyCode()).isEqualTo(501);
+    }

Review Comment:
   What for ?
   
   Not what I asked....



-- 
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