camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r786397 - in /camel/trunk/components: camel-atom/src/test/java/org/apache/camel/component/atom/AtomGoodBlogsTest.java camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteWithInOnlyAndMultipleAcksTest.java
Date Fri, 19 Jun 2009 07:27:25 GMT
Author: ningjiang
Date: Fri Jun 19 07:27:25 2009
New Revision: 786397

URL: http://svn.apache.org/viewvc?rev=786397&view=rev
Log:
Fixed the unit test errors of TC

Modified:
    camel/trunk/components/camel-atom/src/test/java/org/apache/camel/component/atom/AtomGoodBlogsTest.java
    camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteWithInOnlyAndMultipleAcksTest.java

Modified: camel/trunk/components/camel-atom/src/test/java/org/apache/camel/component/atom/AtomGoodBlogsTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-atom/src/test/java/org/apache/camel/component/atom/AtomGoodBlogsTest.java?rev=786397&r1=786396&r2=786397&view=diff
==============================================================================
--- camel/trunk/components/camel-atom/src/test/java/org/apache/camel/component/atom/AtomGoodBlogsTest.java
(original)
+++ camel/trunk/components/camel-atom/src/test/java/org/apache/camel/component/atom/AtomGoodBlogsTest.java
Fri Jun 19 07:27:25 2009
@@ -77,7 +77,7 @@
                 from("atom:file:src/test/data/feed.atom?splitEntries=true&consumer.delay=1000").to("seda:feeds");
 
                 // From the feeds we filter each blot entry by using our blog service class
-                from("seda:feeds").filter().method("blogService", "goodBlog").to("seda:goodBlogs");
+                from("seda:feeds").filter().method("blogService", "isGoodBlog").to("seda:goodBlogs");
 
                 // And the good blogs is moved to a mock queue as this sample is also used
for unit testing
                 // this is one of the strengths in Camel that you can also use the mock endpoint
for your
@@ -115,7 +115,7 @@
          */
         public boolean isGoodBlog(Exchange exchange) {
             Entry entry = exchange.getIn().getBody(Entry.class);
-            String title = entry.getTitle();
+            String title = entry.getTitle();            
 
             // We like blogs about Camel
             boolean good = title.toLowerCase().contains("camel");

Modified: camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteWithInOnlyAndMultipleAcksTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteWithInOnlyAndMultipleAcksTest.java?rev=786397&r1=786396&r2=786397&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteWithInOnlyAndMultipleAcksTest.java
(original)
+++ camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteWithInOnlyAndMultipleAcksTest.java
Fri Jun 19 07:27:25 2009
@@ -113,7 +113,7 @@
         public MyOrderServiceNotificationWithAckBean(String id) {
             this.id = id;
         }
-        public String handleOrder(String body) {
+        public String handleOrderNotificationWithAck(String body) {
             return "Ack-" + id + ":" + body;
         }
     }



Mime
View raw message