camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-2630) Mock endpoint - Add DSL for setting expectations for arrival times between the messages
Date Sun, 30 Jan 2011 10:16:43 GMT

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

Claus Ibsen resolved CAMEL-2630.
--------------------------------

    Resolution: Fixed

Added documentation
https://cwiki.apache.org/confluence/display/CAMEL/Mock

> Mock endpoint - Add DSL for setting expectations for arrival times between the messages
> ---------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2630
>                 URL: https://issues.apache.org/jira/browse/CAMEL-2630
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.7.0
>
>
> Then you can use that time information in testing.
> Maybe add some builder methods to mock so you can set expectations to have arrival time
> - before X
> - after X
> - X after previous
> - X before next
> - etc.
> Maybe something along the lines of:
> {code}
> mock.message(1).arrives(2, seconds).afterPrevious();
> {code}
> Add a timestamp on the Exchange when it's received on the mock
> {code}
> Exchange.RECEIVED_TIMESTAMP
> {code}
> is added as a property on the Exchange

-- 
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