UladzislauBlok commented on code in PR #21684:
URL: https://github.com/apache/kafka/pull/21684#discussion_r2914107489


##########
streams/examples/src/test/java/org/apache/kafka/streams/examples/wordcount/WordCountProcessorTest.java:
##########
@@ -46,7 +66,66 @@ public void test() {
                 .withLoggingDisabled() // Changelog is not supported by 
MockProcessorContext.
                 // Caching is disabled by default, but FYI: caching is also 
not supported by MockProcessorContext.
                 .build();
-        store.init(context.getStateStoreContext(), store);
+        store.init(
+            new AbstractProcessorContext<>(new TaskId(0, 0), new 
StreamsConfig(context.appConfigs()), (StreamsMetricsImpl) context.metrics(), 
null) {

Review Comment:
   I assume `MockProcessorContext` doesn't have a method to mock headers, and 
that's the reason why you re-implemented it, right?
   
   btw, don't think this comment is still correct:
   ```
   /**
    * Demonstrate the use of {@link MockProcessorContext} for testing the 
{@link Processor} in the {@link WordCountProcessorDemo}.
    */
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to