Skip to content

spring kafka test input-output queue #2696

Answered by artembilan
Vichukano asked this question in Ideas
Discussion options

You must be logged in to vote

My five cents.
I'm not a fan of annotations: they don't give that code flow flexibility when we simply can control everything with respective method calls.
Plus I don't see a correlation between your annotation and whatever we have to provide for some specific container to consume with.

I also wouldn't call this an "integration test" since we create the container manually.
It would be an integration one, if we verify a @KafkaListener actions from a production code.
And to be honest that is exactly what target projects must tests.
We use that ContainerTestUtils.waitForAssignment() in the framework unit tests because that is exactly our responsibility to provide coverage for the code we build.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Vichukano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants