You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/09/30 12:07:40 UTC

[jira] Created: (CAMEL-3182) Mock - Make it easier to match body with xpath expressions

Mock - Make it easier to match body with xpath expressions
----------------------------------------------------------

                 Key: CAMEL-3182
                 URL: https://issues.apache.org/activemq/browse/CAMEL-3182
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.4.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Minor
             Fix For: 2.5.0


Currently you have to do:
{code}
mock.message(0).body().matches(xpath("/foo/text() = 'Hello World'").booleanResult());
{code}

Which we should make it easier to do.

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


[jira] Updated: (CAMEL-3182) Mock - Make it easier to match body with xpath expressions

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-3182:
-------------------------------

    Description: 
Currently you have to do:
{code}
import static org.apache.camel.builder.xml.XPathBuilder.xpath;
...
mock.message(0).body().matches(xpath("/foo/text() = 'Hello World'").booleanResult());
{code}

Which we should make it easier to do.

  was:
Currently you have to do:
{code}
mock.message(0).body().matches(xpath("/foo/text() = 'Hello World'").booleanResult());
{code}

Which we should make it easier to do.


> Mock - Make it easier to match body with xpath expressions
> ----------------------------------------------------------
>
>                 Key: CAMEL-3182
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3182
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> Currently you have to do:
> {code}
> import static org.apache.camel.builder.xml.XPathBuilder.xpath;
> ...
> mock.message(0).body().matches(xpath("/foo/text() = 'Hello World'").booleanResult());
> {code}
> Which we should make it easier to do.

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


[jira] Commented: (CAMEL-3182) Mock - Make it easier to match body with xpath expressions

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62265#action_62265 ] 

Claus Ibsen commented on CAMEL-3182:
------------------------------------

And you can do
{code}
mock.message(0).predicate().xpath("/foo/text() = 'Hello World'");
{code}

> Mock - Make it easier to match body with xpath expressions
> ----------------------------------------------------------
>
>                 Key: CAMEL-3182
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3182
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> Currently you have to do:
> {code}
> import static org.apache.camel.builder.xml.XPathBuilder.xpath;
> ...
> mock.message(0).body().matches(xpath("/foo/text() = 'Hello World'").booleanResult());
> {code}
> Which we should make it easier to do.

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


[jira] Resolved: (CAMEL-3182) Mock - Make it easier to match body with xpath expressions

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3182.
--------------------------------

    Resolution: Fixed

trunk: 1003398.

> Mock - Make it easier to match body with xpath expressions
> ----------------------------------------------------------
>
>                 Key: CAMEL-3182
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3182
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> Currently you have to do:
> {code}
> import static org.apache.camel.builder.xml.XPathBuilder.xpath;
> ...
> mock.message(0).body().matches(xpath("/foo/text() = 'Hello World'").booleanResult());
> {code}
> Which we should make it easier to do.

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


[jira] Commented: (CAMEL-3182) Mock - Make it easier to match body with xpath expressions

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62264#action_62264 ] 

Claus Ibsen commented on CAMEL-3182:
------------------------------------

You can now do
{code}
mock.message(0).body().matches().xpath("/foo/text() = 'Hello World'");
{code}

> Mock - Make it easier to match body with xpath expressions
> ----------------------------------------------------------
>
>                 Key: CAMEL-3182
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3182
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> Currently you have to do:
> {code}
> mock.message(0).body().matches(xpath("/foo/text() = 'Hello World'").booleanResult());
> {code}
> Which we should make it easier to do.

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