james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [james-project] 05/23: JAMES-2865 Fix locale dependant test in MockSMTPServer test
Date Fri, 06 Sep 2019 02:01:56 GMT
This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 2b27965c537f22daadabad698d68e5a2070e5844
Author: Benoit Tellier <btellier@linagora.com>
AuthorDate: Wed Aug 28 10:38:38 2019 +0700

    JAMES-2865 Fix locale dependant test in MockSMTPServer test
    
    The exception message is internationalized and appears in French on my
    computer, causing the test to fail. Solution: only match the non
    internationalized part of the exception.
---
 .../test/java/org/apache/james/mock/smtp/server/MockSMTPServerTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/mailet/mock-smtp-server/src/test/java/org/apache/james/mock/smtp/server/MockSMTPServerTest.java
b/server/mailet/mock-smtp-server/src/test/java/org/apache/james/mock/smtp/server/MockSMTPServerTest.java
index a5ceef5..f41b413 100644
--- a/server/mailet/mock-smtp-server/src/test/java/org/apache/james/mock/smtp/server/MockSMTPServerTest.java
+++ b/server/mailet/mock-smtp-server/src/test/java/org/apache/james/mock/smtp/server/MockSMTPServerTest.java
@@ -441,7 +441,7 @@ class MockSMTPServerTest {
         assertThatThrownBy(() -> new SMTPMessageSender(DOMAIN)
                 .connect("localhost", port))
             .isInstanceOf(ConnectException.class)
-            .hasMessage("Connection refused (Connection refused)");
+            .hasMessageContaining("(Connection refused)");
     }
 
     @Test


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message