# Spring Boot event tests

> Shows how to test Spring event publishers and listeners, async and after commit too, so tests catch real bugs.

- Page: https://youraiskill.com/skill/giuseppe-trisciuoglio-unit-test-application-events
- What it does: Provides patterns for unit testing Spring application events. Validates event publishing with ApplicationEventPublisher, tests @EventListener annotation behavior, and verifies async event handling. Use when writing tests for event listeners, mocking application events, or verifying events were published in your Spring Boot services.
- Niches: java, testing, coding
- Licence: MIT
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions and reference files only (1 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
