camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1057487 - /camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/util/SplitterWithXqureyTest.java
Date Tue, 11 Jan 2011 05:10:23 GMT
Author: ningjiang
Date: Tue Jan 11 05:10:22 2011
New Revision: 1057487

URL: http://svn.apache.org/viewvc?rev=1057487&view=rev
Log:
CAMEL-3526 applied patch for SplitterWithXqureyTest refereces Sun JDK specific classes

Modified:
    camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/util/SplitterWithXqureyTest.java

Modified: camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/util/SplitterWithXqureyTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/util/SplitterWithXqureyTest.java?rev=1057487&r1=1057486&r2=1057487&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/util/SplitterWithXqureyTest.java
(original)
+++ camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/util/SplitterWithXqureyTest.java
Tue Jan 11 05:10:22 2011
@@ -17,7 +17,8 @@
 
 package org.apache.camel.component.cxf.util;
 
-import com.sun.org.apache.xerces.internal.dom.ElementImpl;
+import org.w3c.dom.Element;
+
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
@@ -53,7 +54,7 @@ public class SplitterWithXqureyTest exte
                 from("direct:toString").split().xpath("//one:other", namespaces)
                     .process(new Processor() {
                         public void process(Exchange exchange) throws Exception {
-                            ElementImpl element = (ElementImpl) exchange.getIn().getBody();
+                            Element element = (Element) exchange.getIn().getBody();
                             String message = CxfUtils.elementToString(element);
                             exchange.getOut().setBody(message);
                         }
@@ -72,7 +73,7 @@ public class SplitterWithXqureyTest exte
         assertMockEndpointsSatisfied();
         int i = 0;
         for (Exchange exchange : result.getExchanges()) {
-            ElementImpl element = (ElementImpl) exchange.getIn().getBody();           
+            Element element = (Element) exchange.getIn().getBody();           
             String message = CxfUtils.elementToString(element);            
             log.info("The splited message is " + message);
             assertTrue("The splitted message should start with <other", message.indexOf("<other")
== 0);



Mime
View raw message