camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Created: (CAMEL-380) camel-mina UDP protocol fails when sending bytes
Date Sun, 09 Mar 2008 12:44:35 GMT
camel-mina UDP protocol fails when sending bytes

                 Key: CAMEL-380
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-mina
    Affects Versions: 1.3.0
            Reporter: Claus Ibsen

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.

    public void testSendingByteMessages() throws Exception {
        MockEndpoint endpoint = getMockEndpoint("mock:result");

        template.sendBody("mina:udp://", "Hello from bytes".getBytes());
        // sleeping for while to let the mock endpoint get all the message

        List<Exchange> list = endpoint.getReceivedExchanges();
        assertEquals("Hello from bytes", list.get(0).getIn().getBody(String.class));

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

View raw message