This is an automated email from the ASF dual-hosted git repository.

coheigea 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 aa4d9fc  Updating a camel-aws test to use a list for the To header
aa4d9fc is described below

commit aa4d9fcf28b574aac946cbd77b227f3d1279c00d
Author: Colm O hEigeartaigh <[email protected]>
AuthorDate: Tue Feb 5 10:38:54 2019 +0000

    Updating a camel-aws test to use a list for the To header
---
 .../component/aws/ses/integration/SesComponentIntegrationTest.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-aws/src/test/java/org/apache/camel/component/aws/ses/integration/SesComponentIntegrationTest.java
 
b/components/camel-aws/src/test/java/org/apache/camel/component/aws/ses/integration/SesComponentIntegrationTest.java
index d99331a..949ff73 100644
--- 
a/components/camel-aws/src/test/java/org/apache/camel/component/aws/ses/integration/SesComponentIntegrationTest.java
+++ 
b/components/camel-aws/src/test/java/org/apache/camel/component/aws/ses/integration/SesComponentIntegrationTest.java
@@ -16,6 +16,8 @@
  */
 package org.apache.camel.component.aws.ses.integration;
 
+import java.util.Collections;
+
 import org.apache.camel.Exchange;
 import org.apache.camel.ExchangePattern;
 import org.apache.camel.Processor;
@@ -33,7 +35,7 @@ public class SesComponentIntegrationTest extends 
CamelTestSupport {
         Exchange exchange = template.send("direct:start", 
ExchangePattern.InOnly, new Processor() {
             public void process(Exchange exchange) throws Exception {
                 exchange.getIn().setHeader(SesConstants.SUBJECT, "This is my 
subject");
-                exchange.getIn().setHeader(SesConstants.TO, 
"[email protected]");
+                exchange.getIn().setHeader(SesConstants.TO, 
Collections.singletonList("[email protected]"));
                 exchange.getIn().setBody("This is my message text.");
             }
         });

Reply via email to