Jiri Ondrusek created CAMEL-17994:
-------------------------------------

             Summary: Camel-aws2-kinesis: Integration test does not work - 
KinesisComponentManualIT 
                 Key: CAMEL-17994
                 URL: https://issues.apache.org/jira/browse/CAMEL-17994
             Project: Camel
          Issue Type: Test
          Components: camel-aws2, tests
            Reporter: Jiri Ondrusek
            Assignee: Jiri Ondrusek


There is a code in the test 
{quote}Record record = resultExchange.getIn().getBody(Record.class); 
assertEquals(data, new String(record.data().asByteArray()));
{quote}
Body of the exchange is already converted in to InputStream in Kinesis2Consumer 
class.

Working code should be:
{quote}assertEquals(data,resultExchange.getIn().getBody(String.class));
{quote}
 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to