There's some native configurations like enableDlq within spring cloud stream kafka binder, but there's not any example's that i've found on how to properly unit test if the enableDlq is working properly. Are there any examples out there of how to properly implement this type of test?
Asked
Active
Viewed 850 times
1 Answers
0
There are a bunch of tests in the binder project itself:
The general technique there is to bind to the dlq with a separate binding, but you can equally well just define a KafkaConsumer
to consume from it and verify that it received the message you expected.

Gary Russell
- 166,535
- 14
- 146
- 179
-
Thanks Gary! Might i suggest adding a link to the documentation that gives reference implementations.. I know a google search works but would be nice to see them in the guides as well. – TypicalTypingTom Mar 11 '21 at 21:30
-
Feel free to open a GitHub issue against the binder with your suggestion. – Gary Russell Mar 11 '21 at 22:18