[
https://issues.apache.org/jira/browse/KAFKA-15242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17847063#comment-17847063
]
Matthias J. Sax commented on KAFKA-15242:
-----------------------------------------
The example
([https://github.com/zveljkovic/kafka-repro/blob/master/src/test/java/com/example/demo/MyFixedKeyProcessorTest.java])
tries to use `MockProcessorContext` to test `FixedKeyProcessor` – this does
not work.
Adding `MockFixKeyProcessorContext` should allow to test` FixKeyProcessor`
using this newly added class.
What other issue does this ticket include that's not covered? Can you elaborate?
> FixedKeyProcessor testing is unusable
> -------------------------------------
>
> Key: KAFKA-15242
> URL: https://issues.apache.org/jira/browse/KAFKA-15242
> Project: Kafka
> Issue Type: Bug
> Components: streams
> Reporter: Zlstibor Veljkovic
> Assignee: Alexander Aghili
> Priority: Major
>
> Using mock processor context to get the forwarded message doesn't work.
> Also there is not a well documented way for testing FixedKeyProcessors.
> Please see the repo at [https://github.com/zveljkovic/kafka-repro]
> but most important piece is test file with runtime and compile time errors:
> [https://github.com/zveljkovic/kafka-repro/blob/master/src/test/java/com/example/demo/MyFixedKeyProcessorTest.java]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)