This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new a8c3b6e Fixed test
a8c3b6e is described below
commit a8c3b6e63fef660d3f80c7c87dfb87edac8cd2e0
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Mar 29 15:42:15 2020 +0200
Fixed test
---
.../test/java/org/apache/camel/component/mail/MailProducerTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailProducerTest.java
b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailProducerTest.java
index c288354..c111ced 100644
---
a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailProducerTest.java
+++
b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailProducerTest.java
@@ -31,7 +31,7 @@ import org.jvnet.mock_javamail.Mailbox;
public class MailProducerTest extends CamelTestSupport {
@Test
- public void testProduer() throws Exception {
+ public void testProducer() throws Exception {
Mailbox.clearAll();
getMockEndpoint("mock:result").expectedMessageCount(1);
@@ -52,7 +52,7 @@ public class MailProducerTest extends CamelTestSupport {
Address from = new InternetAddress("fromCamelTest@localhost");
Address to = new InternetAddress("recipient2@localhost");
- Session session = Session.getDefaultInstance(System.getProperties());
+ Session session = Session.getDefaultInstance(System.getProperties(),
new DefaultAuthenticator("camel", "localhost"));
MimeMessage mimeMessage = new MimeMessage(session);
mimeMessage.setFrom(from);
mimeMessage.addRecipient(RecipientType.TO, to);