camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmuel...@apache.org
Subject svn commit: r1293722 - /camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/builder/xml/ExtractXPathWithNamespaceTest.java
Date Sat, 25 Feb 2012 23:16:44 GMT
Author: cmueller
Date: Sat Feb 25 23:16:44 2012
New Revision: 1293722

URL: http://svn.apache.org/viewvc?rev=1293722&view=rev
Log:
fixed a broken unit test in org.apache.camel.builder.xml.ExtractXPathWithNamespaceTest

Modified:
    camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/builder/xml/ExtractXPathWithNamespaceTest.java

Modified: camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/builder/xml/ExtractXPathWithNamespaceTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/builder/xml/ExtractXPathWithNamespaceTest.java?rev=1293722&r1=1293721&r2=1293722&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/builder/xml/ExtractXPathWithNamespaceTest.java
(original)
+++ camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/builder/xml/ExtractXPathWithNamespaceTest.java
Sat Feb 25 23:16:44 2012
@@ -16,8 +16,6 @@
  */
 package org.apache.camel.builder.xml;
 
-import junit.framework.Assert;
-
 import org.apache.camel.ContextTestSupport;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
@@ -50,11 +48,11 @@ public class ExtractXPathWithNamespaceTe
     public void testXPathWithNamespaceDifferentNamespace() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedBodiesReceived("<number xmlns=\"http://acme.com/cake\">55</number>");
-
+        mock.expectedHeaderReceived("foo", 0);
+        
         template.sendBody("direct:in", "<number xmlns=\"http://acme.com/cake\">55</number>");
 
         mock.assertIsSatisfied();
-        Assert.assertNull(mock.getExchanges().get(0).getIn().getHeader("foo"));
     }
 
     protected RouteBuilder createRouteBuilder() throws Exception {



Mime
View raw message