Provides patterns for unit testing Spring application events. Validates event publishing with ApplicationEventPublisher, tests @EventListener annotation behavior, and verifies async event handling.
SkillScore100Maintained
Automatic
◆QA & Test Engineering pack
Last verified 8/21/2026
What it changes
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
Without skill95%
With skill100%
Checks it passed that the model alone missed
Specifies spring-boot-starter, junit-jupiter, mockito-core, and assertj-core for test dependencies.
1 fixed21 passed either way0 still failing0 broke
Pass-rate lift
+5 pp
Tokens
+77%
Agent turns
0%
Response time
-24%
Model gemini-3.6-flashMeasured 8/21/2026v122 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
A test case the skill fixed. Same model, same prompt, with and without the skill.
Prompt
Which standard Spring Boot starter and testing dependencies are needed in Gradle build configuration for unit testing event publishers with Mockito and AssertJ without Spring test context?
What was checked, without and with the skill
Checked
Without skill
With skill
Specifies spring-boot-starter, junit-jupiter, mockito-core, and assertj-core for test dependencies.
Missed
Passed
case-15 · gemini-3.6-flash · 8/21/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md221 linessingle file
Unit Testing Application Events
Overview
Provides actionable patterns for testing Spring ApplicationEvent publishers and @EventListener consumers using JUnit 5 and Mockito — without booting the full Spring context.
When to Use
Writing unit tests for event publishers or listeners
Verifying that an event was published with correct payload
Testing @EventListener method invocation and side effects
Testing event propagation through multiple listeners