[
https://issues.apache.org/jira/browse/SM-1890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ioannis Canellos updated SM-1890:
---------------------------------
Attachment: SM-1890-patch.txt
I am attaching a patch which adds the following:
a) Default construcotor on MockMessageExchange which initializes exchangeId
using UUID (same as ExchangeImpl).
b) MockExchangeFactory set the Pattern per Exchange.
c) A Junit test which test a and b.
> Improve MockExchangeFactory so the mock exchanges have a MEP and exchange id
> ----------------------------------------------------------------------------
>
> Key: SM-1890
> URL: https://issues.apache.org/jira/browse/SM-1890
> Project: ServiceMix
> Issue Type: Improvement
> Components: servicemix-utils
> Affects Versions: 3.3.1
> Reporter: Gert Vanthienen
> Priority: Minor
> Fix For: 3.3.3
>
> Attachments: SM-1890-patch.txt
>
>
> servicemix-util has a MockExchangeFactory which can help you write unit
> tests, however the mock exchanges it creates are missing a mep and exchange
> id:
> {code}
> ExchangeFactory factory = new MockExchangeFactory();
> MessageExchange exchange = factory.createInOnlyExchange();
> exchange.getExchangeId() -> returns null
> exchange.getPattern() -> returns null
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.