camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-2520) NullPointerException using xpath with MockEndpoint
Date Thu, 04 Mar 2010 10:01:45 GMT

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

Willem Jiang commented on CAMEL-2520:
-------------------------------------

@Drapisa,

The .xpath() DSL can't work after the  result.allMessages().
I just changed the code to be 
{code}
        XPathExpression xpath = new XPathExpression("/foo = 'bar'");
        xpath.setResultType(Boolean.class);
        result.allMessages().body().matches(xpath);
{code}



> NullPointerException using xpath with MockEndpoint
> --------------------------------------------------
>
>                 Key: CAMEL-2520
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2520
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.3.0
>            Reporter: Dragisa Krsmanovic
>            Assignee: Willem Jiang
>         Attachments: MockXpathTest.patch
>
>
> Getting NPE when trying to do assertion like this result.allMessages().xpath("/foo",
String.class).isEqualTo("bar"); 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message