activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r530431 - /activemq/camel/trunk/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaIdempotentConsumerTest.java
Date Thu, 19 Apr 2007 14:42:45 GMT
Author: jstrachan
Date: Thu Apr 19 07:42:44 2007
New Revision: 530431

URL: http://svn.apache.org/viewvc?view=rev&rev=530431
Log:
added more helper behaviour to the MockEndpoint for easier testing; also migrated the various
processor tests to the new MockEndpoint approach to simplify testing

Modified:
    activemq/camel/trunk/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaIdempotentConsumerTest.java

Modified: activemq/camel/trunk/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaIdempotentConsumerTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaIdempotentConsumerTest.java?view=diff&rev=530431&r1=530430&r2=530431
==============================================================================
--- activemq/camel/trunk/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaIdempotentConsumerTest.java
(original)
+++ activemq/camel/trunk/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaIdempotentConsumerTest.java
Thu Apr 19 07:42:44 2007
@@ -42,14 +42,14 @@
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder(final String endpointUri, final Processor<Exchange>
processor) {
+    protected RouteBuilder createRouteBuilder(final String fromUri, final String toUri) {
         // START SNIPPET: idempotent
         return new SpringRouteBuilder<Exchange>() {
             public void configure() {
-                from(endpointUri).idempotentConsumer(
+                from(fromUri).idempotentConsumer(
                         header("messageId"),
                         jpaMessageIdRepository(bean(JpaTemplate.class), "myProcessorName")
-                ).process(processor);
+                ).to(toUri);
             }
         };
         // END SNIPPET: idempotent



Mime
View raw message