Skip to content
U

unit-test-application-events

Provides patterns for unit testing Spring application events

by giuseppe-trisciuoglioFree

#7415in AI Skills
0In stores

Description

This agent skill gives patterns for writing unit tests for Spring application events, using JUnit 5 and Mockito. It targets two sides of the…

Highlights

  • Verify that events are published with the right payload
  • Test @EventListener methods and their side effects
  • Check event propagation through several listeners
  • Test async listeners that use @Async
  • Mock ApplicationEventPublisher in service tests

Ratings & Reviews

No ratings yet

Be the first to rate unit-test-application-events.

People also visit

U

unit-test-exception-handler

Provides patterns for unit testing `@ExceptionHandler`

AI Skills
Get
U

unit-test-scheduled-async

Provides patterns for unit testing Spring `@Scheduled`

AI Skills
Get
U

unit-test-caching

Provides patterns for unit testing Spring Cache annotations

AI Skills
Get
U

unit-test-security-authorization

Provides patterns for unit testing Spring Security

AI Skills
Get
U

unit-test-config-properties

Provides patterns for unit testing `@ConfigurationProperties` classes

AI Skills
Get
U

unit-test-parameterized

Provides parameterized testing patterns

AI Skills
Get

unit-test-application-events FAQ

Does it need a running Spring context?

No. The skill is built around unit tests that run without booting the full Spring context.

Which test tools does it use?

It uses JUnit 5 and Mockito.

Does it cover async listeners?

Yes. It covers validating async event handling with @Async and @EventListener.

How do I install it?

Run npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-application-events.

What security audits has it passed?

Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.

What are the best unit-test-application-events alternatives?

Popular alternatives to unit-test-application-events include unit-test-exception-handler, unit-test-scheduled-async and unit-test-caching. See all unit-test-application-events alternatives

Developer Stuff

Badges