Camel-8024 Improvement to camel-sjms JMSMessageHelper

Hi all,

This PR is related to: https://issues.apache.org/jira/browse/CAMEL-8024

Please let me know if something can be improved or if something is wrong. I've added some check on discoverMessageTypeFromPayload method and a new test class.

Bye,
Andrea
I'll patch my errors. Sorry about this. I'm apologize.
Il 09/nov/2014 19:10 "Aaron Whiteside" <notifications@github.com> ha
scritto:

> In
> components/camel-sjms/src/test/java/org/apache/camel/component/sjms/typeconversion/JMSMessageHelperTypeConversionTest.java:
>
> > +        String p = "Hello Camel";
> > +        StringReader test = new StringReader(p);
> > +        template.sendBody("sjms:queue:start", test);
> > +        assertMockEndpointsSatisfied();
> > +    }
> > +
> > +    @Test
> > +    public void testJMSMessageHelperChar() throws InterruptedException, FileNotFoundException {
> > +        getMockEndpoint("mock:result").expectedBodiesReceived("H");
> > +        char p = 'H';
> > +        template.sendBody("sjms:queue:start", p);
> > +        assertMockEndpointsSatisfied();
> > +    }
> > +
> > +    @Test
> > +    public void testJMSMessageHelperCharArray() throws InterruptedException, FileNotFoundException {
>
> Need to assert that a TextMessage was created, and the type of class in
> Exchange.getIn().getBody() is String.class.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/apache/camel/pull/326/files#r20060311>.
>