spring kafka test input-output queue #2696
-
Hallo!
It may be possible to come up with some mechanism by which it would be possible to set incoming and outgoing queues in tests, for example like this:
Do you think that would be a feature? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My five cents. I also wouldn't call this an "integration test" since we create the container manually. |
Beta Was this translation helpful? Give feedback.
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.