activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r538113 - /activemq/camel/trunk/camel-saxon/src/test/java/org/apache/camel/builder/saxon/XQueryFilterTest.java
Date Tue, 15 May 2007 09:56:39 GMT
Author: jstrachan
Date: Tue May 15 02:56:39 2007
New Revision: 538113

URL: http://svn.apache.org/viewvc?view=rev&rev=538113
Log:
fixed up test case

Modified:
    activemq/camel/trunk/camel-saxon/src/test/java/org/apache/camel/builder/saxon/XQueryFilterTest.java

Modified: activemq/camel/trunk/camel-saxon/src/test/java/org/apache/camel/builder/saxon/XQueryFilterTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-saxon/src/test/java/org/apache/camel/builder/saxon/XQueryFilterTest.java?view=diff&rev=538113&r1=538112&r2=538113
==============================================================================
--- activemq/camel/trunk/camel-saxon/src/test/java/org/apache/camel/builder/saxon/XQueryFilterTest.java
(original)
+++ activemq/camel/trunk/camel-saxon/src/test/java/org/apache/camel/builder/saxon/XQueryFilterTest.java
Tue May 15 02:56:39 2007
@@ -18,10 +18,10 @@
 package org.apache.camel.builder.saxon;
 
 import org.apache.camel.ContextTestSupport;
-import org.apache.camel.Exchange;
 import org.apache.camel.Endpoint;
+import org.apache.camel.Exchange;
 import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.builder.xml.XPathBuilder;
+import static org.apache.camel.builder.saxon.XQueryBuilder.xquery;
 import org.apache.camel.component.mock.MockEndpoint;
 
 /**
@@ -61,7 +61,7 @@
             public void configure() {
                 // START SNIPPET: example
                 from("direct:start").filter(
-                        XPathBuilder.xpath("/person[@name='James']")
+                        xquery("/person[@name='James']")
                 ).to("mock:result");
                 // END SNIPPET: example
             }



Mime
View raw message