[jira] Created: (CAMEL-414) Add unit test for MockEndpoint expectation of headers

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-414) Add unit test for MockEndpoint expectation of headers

JIRA jira@apache.org
Add unit test for MockEndpoint expectation of headers
-----------------------------------------------------

                 Key: CAMEL-414
                 URL: https://issues.apache.org/activemq/browse/CAMEL-414
             Project: Apache Camel
          Issue Type: Test
            Reporter: Jonathan Anstey
            Assignee: Jonathan Anstey
         Attachments: headerExpectationTest.patch

I forgot to add in a test for this when I updated the MockEndpoint recently...

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-414) Add unit test for MockEndpoint expectation of headers

JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-414:
------------------------------

    Fix Version/s: 1.4.0
         Priority: Minor  (was: Major)
      Component/s: camel-core

> Add unit test for MockEndpoint expectation of headers
> -----------------------------------------------------
>
>                 Key: CAMEL-414
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-414
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>            Priority: Minor
>             Fix For: 1.4.0
>
>         Attachments: headerExpectationTest.patch
>
>
> I forgot to add in a test for this when I updated the MockEndpoint recently...

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-414) Add unit test for MockEndpoint expectation of headers

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Claus Ibsen commented on CAMEL-414:
-----------------------------------

Jon the patch has not been granted ASF rights. Could you reattach the patch with these rights so I can commit it to the trunk?

> Add unit test for MockEndpoint expectation of headers
> -----------------------------------------------------
>
>                 Key: CAMEL-414
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-414
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>            Priority: Minor
>             Fix For: 1.4.0
>
>         Attachments: headerExpectationTest.patch
>
>
> I forgot to add in a test for this when I updated the MockEndpoint recently...

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-414) Add unit test for MockEndpoint expectation of headers

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Claus Ibsen commented on CAMEL-414:
-----------------------------------

Jon if you fancy we have a better method on the ContextTextSupport to get hold of a MockEndpoint

{code}
resolveMandatoryEndpoint("mock:result", MockEndpoint.class)
{code}

should be replaced with
{code}
getMockEndpoint("mock:result");
{code}

> Add unit test for MockEndpoint expectation of headers
> -----------------------------------------------------
>
>                 Key: CAMEL-414
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-414
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>            Priority: Minor
>             Fix For: 1.4.0
>
>         Attachments: headerExpectationTest.patch
>
>
> I forgot to add in a test for this when I updated the MockEndpoint recently...

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-414) Add unit test for MockEndpoint expectation of headers

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Anstey updated CAMEL-414:
----------------------------------

    Attachment: headerExpectationTest2.patch

Oh yeah, getMockEndpoint is much nicer :)

Here is the updated patch. Thanks!

> Add unit test for MockEndpoint expectation of headers
> -----------------------------------------------------
>
>                 Key: CAMEL-414
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-414
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>            Priority: Minor
>             Fix For: 1.4.0
>
>         Attachments: headerExpectationTest.patch, headerExpectationTest2.patch
>
>
> I forgot to add in a test for this when I updated the MockEndpoint recently...

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

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (CAMEL-414) Add unit test for MockEndpoint expectation of headers

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen closed CAMEL-414.
-----------------------------

    Resolution: Fixed

Applied patch with thanks to Jonathan

> Add unit test for MockEndpoint expectation of headers
> -----------------------------------------------------
>
>                 Key: CAMEL-414
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-414
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>            Priority: Minor
>             Fix For: 1.4.0
>
>         Attachments: headerExpectationTest.patch, headerExpectationTest2.patch
>
>
> I forgot to add in a test for this when I updated the MockEndpoint recently...

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-414) Add unit test for MockEndpoint expectation of headers

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hadrian Zbarcea updated CAMEL-414:
----------------------------------

    Fix Version/s: 1.3.0
                       (was: 1.4.0)

> Add unit test for MockEndpoint expectation of headers
> -----------------------------------------------------
>
>                 Key: CAMEL-414
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-414
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-core
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>            Priority: Minor
>             Fix For: 1.3.0
>
>         Attachments: headerExpectationTest.patch, headerExpectationTest2.patch
>
>
> I forgot to add in a test for this when I updated the MockEndpoint recently...

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