Hi

I am unable to get the body of the request. The code is located on:

https://github.com/rajivj2/example2

@Transactional
        @Test
        public void testMessageSendToConsumerQueueRemoteId() throws Exception {
                Status status = new Status();
                status.setUserId(10);
                statusDAO.save(status);
                // status = statusDAO.findByUserId(10);
                // logger.debug("remoteId : " + status.getUserId());
                MockEndpoint mockEndpoint = (MockEndpoint)
this.context.getEndpoint(properties.getProperty("activemq.destination"));
                Status savedStatus = producerTemplate.requestBody(source, "<?xml
version='1.0' encoding='UTF-8'
standalone='yes'?><example><remoteid>10</remoteid></example>",
Status.class);
                assertNotNull(savedStatus); // this is the issue
                mockEndpoint.assertIsSatisfied();
        }

I am expecting the savedStatus to not be null. What am I doing wrong here?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Unable-to-get-the-body-of-the-request-tp5756278.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to