You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Raul Kripalani (Commented) (JIRA)" <ji...@apache.org> on 2012/01/03 12:56:39 UTC

[jira] [Commented] (CAMEL-4759) Balance up xpath XML element with Java DSL equivalent

    [ https://issues.apache.org/jira/browse/CAMEL-4759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178699#comment-13178699 ] 

Raul Kripalani commented on CAMEL-4759:
---------------------------------------

Done. Now checking if vendor is IBM and only running tests if not.
Cannot use JUnit Assume to conditionally skip tests because this test cases are based on JUnit 3.8.
To use JUnit 4 we'd have to import camel-test (to use {{org.apache.camel.test.junit4.CamelSpringTestSupport}}), but this means creating yet another intra-project dependency and I'm not sure whether it's the way to go. So instead, the tests are skipped by immediately returning (consequently counting the test as passed instead of skipped).

I've moved the patch from this subtask to the parent task.

P.S.: Babak, thanks! You mean my avatar on Twitter? I've changed it now though ;)
                
> Balance up xpath XML element with Java DSL equivalent
> -----------------------------------------------------
>
>                 Key: CAMEL-4759
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4759
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-core, camel-saxon
>    Affects Versions: 2.8.4, 2.9.0
>            Reporter: Raul Kripalani
>
> The <xpath> XML element in Spring DSL doesn't allow to set the following options which are available on Java DSL:
> * factory
> * object model
> * shortcut to use Saxon
> These options should be implemented as attributes on the xpath XML element, e.g.:
> {code}
> <xpath factory="net.sf.saxon.xpath.XPathFactoryImpl">...</xpath>
> {code}
> {code}
> <xpath objectModel="http://saxon.sf.net/jaxp/xpath/om">...</xpath>
> {code}
> (this one somehow feels ugly, is the objectModel supposed to be a namespace?)
> {code}
> <xpath saxon="true">...</xpath>
> {code}
> Only one should be allowed at a time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira