You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2008/03/10 03:27:35 UTC
[jira] Assigned: (CAMEL-380) camel-mina UDP protocol fails when
sending bytes
[ https://issues.apache.org/activemq/browse/CAMEL-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-380:
----------------------------------
Assignee: Willem Jiang
> camel-mina UDP protocol fails when sending bytes
> ------------------------------------------------
>
> Key: CAMEL-380
> URL: https://issues.apache.org/activemq/browse/CAMEL-380
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-mina
> Affects Versions: 1.3.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Attachments: camel_380_patch.txt, camel_380_patch2.txt
>
>
> Using a CamelProducer to send bytes to a mina UDP listener fails.
> This unit tests below fails
> Using: "Hello from bytes" as a plain string works fine.
> {code}
> public void testSendingByteMessages() throws Exception {
> MockEndpoint endpoint = getMockEndpoint("mock:result");
> endpoint.expectedMessageCount(1);
> template.sendBody("mina:udp://127.0.0.1:4445", "Hello from bytes".getBytes());
> // sleeping for while to let the mock endpoint get all the message
> Thread.sleep(1000);
> assertMockEndpointsSatisifed();
> List<Exchange> list = endpoint.getReceivedExchanges();
> assertEquals("Hello from bytes", list.get(0).getIn().getBody(String.class));
> }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.