jeqo commented on code in PR #11993:
URL: https://github.com/apache/kafka/pull/11993#discussion_r850256763


##########
streams/src/test/java/org/apache/kafka/test/MockProcessorNode.java:
##########
@@ -60,7 +61,7 @@ public void init(final InternalProcessorContext<KOut, VOut> 
context) {
 
     @Override
     public void process(final Record<KIn, VIn> record) {
-        processor().process(record);
+        mockProcessor.process(record);

Review Comment:
   Got it. Replaced the initialization with: `this.mockProcessor = 
(MockApiProcessor<...>) ProcessorAdapter.adapt(mockProcessor);`
   Let me now if this look good now.



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

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to