prasanthkumar2392 opened a new issue #6642: Context in Pulsar functions not getting mocked URL: https://github.com/apache/pulsar/issues/6642 **I am trying to write a unit test for Pulsar functions, and if I try to Mock Context class, I get null pointer exception** **Steps to reproduce the behavior:** - I am creating a pulsar function which does some processing logic on the messages. - I am using Context interface inside the function to get logger, get output topic and newOutputMessage. While writing unit tests for functions, I am mocking the context as per this example but I land up in facing null pointer exception as Context class is not getting mocked [http://pulsar.apache.org/docs/ja/2.4.0/functions-debugging/#use-unit-test](url) **Pulsar functions -2.5.0**
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
