You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using @RecordApplicationEvents, currently the ApplicationEventsHolder uses a ThreadLocal to save published events. Can this be extended to also retrieve events across all threads?
Use cases:
Assert on async events
Whether or not the event itself was async, when using an async test library like Awaitility in this way: await().untilAsserted(() -> assertThat(applicationEvents.stream())..... );
The assertion runs in a different thread (so that Awaitility can time and interrupt if necessary), so no events are found whatsoever.