Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17241

camel-kafka - Incorrect exception test

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.14.0
    • camel-kafka, tests
    • None
    • Unknown

    Description

      This test 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.

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              orpiske Otavio Rodolfo Piske
              orpiske Otavio Rodolfo Piske
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: