camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r906881 - /camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcPreserveHeadersTest.java
Date Fri, 05 Feb 2010 09:47:37 GMT
Author: davsclaus
Date: Fri Feb  5 09:47:36 2010
New Revision: 906881

URL: http://svn.apache.org/viewvc?rev=906881&view=rev
Log:
Fixed test on other box

Modified:
    camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcPreserveHeadersTest.java

Modified: camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcPreserveHeadersTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcPreserveHeadersTest.java?rev=906881&r1=906880&r2=906881&view=diff
==============================================================================
--- camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcPreserveHeadersTest.java
(original)
+++ camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcPreserveHeadersTest.java
Fri Feb  5 09:47:36 2010
@@ -44,8 +44,7 @@
     public void testPreserveHeaders() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedMessageCount(1);
-        mock.expectedHeaderReceived("ONE", 1);
-        mock.expectedHeaderReceived("TWO", 2);
+        mock.expectedHeaderReceived("foo", "bar");
         mock.assertIsSatisfied();
     }
 
@@ -61,8 +60,7 @@
                 from("timer://kickoff?period=10000").
                         process(new Processor() {
                             public void process(Exchange e) throws Exception {
-                                e.getIn().setHeader("ONE", 1);
-                                e.getIn().setHeader("TWO", 2);
+                                e.getIn().setHeader("foo", "bar");
                             }
                         }).
                         setBody(constant("select * from customer")).



Mime
View raw message