This is an automated email from the ASF dual-hosted git repository.
jlmonteiro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/master by this push:
new c274a52 Fix test because we downgraded javamail for now
c274a52 is described below
commit c274a5232153a2b7be3c223377625d8959c4fac4
Author: Jean-Louis Monteiro <[email protected]>
AuthorDate: Mon Sep 9 16:21:58 2019 +0200
Fix test because we downgraded javamail for now
---
.../javamail/src/test/java/org/superbiz/rest/EmailServiceTest.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git
a/examples/javamail/src/test/java/org/superbiz/rest/EmailServiceTest.java
b/examples/javamail/src/test/java/org/superbiz/rest/EmailServiceTest.java
index 2de3242..9359715 100644
--- a/examples/javamail/src/test/java/org/superbiz/rest/EmailServiceTest.java
+++ b/examples/javamail/src/test/java/org/superbiz/rest/EmailServiceTest.java
@@ -42,8 +42,6 @@ public class EmailServiceTest {
@Test
public void post() throws IOException {
final String message =
WebClient.create("http://localhost:4204").path("/test/email/").post("Hello
TomEE", String.class);
- assertEquals("Failed to send message: " +
- "Send failure (javax.mail.MessagingException: " +
- "Unknown SMTP host: your.mailserver.host
(java.net.UnknownHostException: your.mailserver.host))", message);
+ assertEquals("Failed to send message: Unknown SMTP host:
your.mailserver.host", message);
}
}