Spring boot Integration testing MockBean returning NULL issues #160
Replies: 1 comment
-
Hello, I'm doing good thanks, I hope you're doing well too. I've not used mocked injector to do the integration test, I think you should inject mocked message enqueuer. It would be nice if you can share sample code so that I can check and suggest if I know something. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there, hope you are doing well
I having a weird issue while writing integration tests for code that uses rqueue, specifically after a queue listener calls a method, sometimes (not always and that's the weird part) the mocks that the code being executed in that method needs just returns
NULL
, its a 50/50 for some reason sometimes the mocks works fine and other times they don't, have you encounter anything like this before?, I know that it is kinda of a vague question but I just wanted to see if you have any suggestions on itthanks in advance
Beta Was this translation helpful? Give feedback.
All reactions