-
Notifications
You must be signed in to change notification settings - Fork 38.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@RecordApplicationEvents
does not work with @EmbeddedKafka
#33860
Comments
@RecordApplicationEvents
does not work with @EmbeddedKafka
hey @spirosag. Even with #30020, it might indeed be the case that the event is published from a thread created too early for the test feature to catch it. If you can confirm this is the case, then |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
I have a project with spring-kafka where a
@KafkaListener
receives a kafka record and produces a spring boot application event. I have a@SpringBootTest
with@EmbeddedKafka
and@RecordApplicationEvents
to test this functionality.Although my event is published correctly it is not recorded.
I am using spring boot 3.2.3 and I was expecting that with #30020 it should record it. Or is the kafka thread created before the test starts so it is expected not to be created?
I have ended using a custom solution with a test
@EventListener
t and it works as expected but I'd prefer to use the recorded events if possible for simplicity.I can also provide a sample project with the setup if needed.
The text was updated successfully, but these errors were encountered: