[
https://issues.apache.org/jira/browse/CAMEL-17241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-17241:
--------------------------------
Fix Version/s: 3.14.0
> camel-kafka - Incorrect exception test
> --------------------------------------
>
> Key: CAMEL-17241
> URL: https://issues.apache.org/jira/browse/CAMEL-17241
> Project: Camel
> Issue Type: Test
> Components: camel-kafka, tests
> Reporter: Otavio Rodolfo Piske
> Assignee: Otavio Rodolfo Piske
> Priority: Minor
> Fix For: 3.14.0
>
>
> This
> [test|https://github.com/apache/camel/blob/main/components/camel-kafka/src/test/java/org/apache/camel/component/kafka/KafkaProducerTest.java#L131-L141]
> is a false positive. The code is throwing a NPE here:
> [https://github.com/apache/camel/blob/main/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaProducer.java#L247]
> But because it tests for the Exception.class the test pass. It should test
> for the ApiException.
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)