activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r534376 - in /activemq/camel/trunk/camel-mail/src: main/java/org/apache/camel/component/mail/MailProducer.java test/java/org/apache/camel/component/mail/MailRouteTest.java
Date Wed, 02 May 2007 10:29:56 GMT
Author: jstrachan
Date: Wed May  2 03:29:51 2007
New Revision: 534376

URL: http://svn.apache.org/viewvc?view=rev&rev=534376
Log:
use the new simpler helper method on CamelClient

Modified:
    activemq/camel/trunk/camel-mail/src/main/java/org/apache/camel/component/mail/MailProducer.java
    activemq/camel/trunk/camel-mail/src/test/java/org/apache/camel/component/mail/MailRouteTest.java

Modified: activemq/camel/trunk/camel-mail/src/main/java/org/apache/camel/component/mail/MailProducer.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-mail/src/main/java/org/apache/camel/component/mail/MailProducer.java?view=diff&rev=534376&r1=534375&r2=534376
==============================================================================
--- activemq/camel/trunk/camel-mail/src/main/java/org/apache/camel/component/mail/MailProducer.java
(original)
+++ activemq/camel/trunk/camel-mail/src/main/java/org/apache/camel/component/mail/MailProducer.java
Wed May  2 03:29:51 2007
@@ -40,7 +40,6 @@
         this.sender = sender;
     }
 
-
     public void process(final Exchange exchange) {
         sender.send(new MimeMessagePreparator() {
             public void prepare(MimeMessage mimeMessage) throws Exception {

Modified: activemq/camel/trunk/camel-mail/src/test/java/org/apache/camel/component/mail/MailRouteTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-mail/src/test/java/org/apache/camel/component/mail/MailRouteTest.java?view=diff&rev=534376&r1=534375&r2=534376
==============================================================================
--- activemq/camel/trunk/camel-mail/src/test/java/org/apache/camel/component/mail/MailRouteTest.java
(original)
+++ activemq/camel/trunk/camel-mail/src/test/java/org/apache/camel/component/mail/MailRouteTest.java
Wed May  2 03:29:51 2007
@@ -41,11 +41,7 @@
         resultEndpoint = (MockEndpoint) resolveMandatoryEndpoint("mock:result");
         resultEndpoint.expectedBodiesReceived("hello world!");
 
-        client.send("smtp://james@localhost", new Processor() {
-            public void process(Exchange exchange) {
-                exchange.getIn().setBody("hello world!");
-            }
-        });
+        client.sendBody("smtp://james@localhost", "hello world!");
 
         // lets test the first sent worked
         assertMailboxReceivedMessages("james@localhost");



Mime
View raw message