Skip to main content
Back to registry

unit-test-application-events

giuseppe-trisciuoglio/developer-kit

This skill provides comprehensive patterns for testing Spring ApplicationEvent publishers and event listeners using JUnit 5. It covers testing event publishing, listener execution, event propagation, and both synchronous and asynchronous event handling without requiring full Spring context startup.

Installs290
Install command
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-application-events
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
This skill provides comprehensive patterns for testing Spring ApplicationEvent publishers and event listeners using JUnit 5. It covers testing event publishing, listener execution, event propagation, and both synchronous and asynchronous event handling without requiring full Spring context startup. Use this skill when: Event not being captured : Verify ArgumentCaptor type matches event class. Listener not invoked : Ensure event is actually published and listener is registered. Async listener timing issues : Use Thread.sleep() or Awaitility to wait for completion. - Testing ApplicationEventPublisher event publishing - Testing @EventListener method invocation - Verifying event listener logic and side effects - Testing event propagation through listeners - Want fast event-driven architecture tests - Testing both synchronous and asynchronous event handling - Add required dependencies : Include spring-boot-starter, JUnit 5, Mockito, and AssertJ in your project - Mock the ApplicationEventPublisher : In service tests, use @Mock to mock the event publisher - Use ArgumentCaptor : Capture published events to verify their content using ArgumentCaptor.forClass(EventType.class) - Test listener side effects : Invoke listener methods directly and verify their effects on mocked dependencies - Test event data integrity : Always verify that the captured event contains the correct data - Handle...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does unit-test-application-events do?

This skill provides comprehensive patterns for testing Spring ApplicationEvent publishers and event listeners using JUnit 5. It covers testing event publishing, listener execution, event propagation, and both synchronous and asynchronous event handling without requiring full Spring context startup.

Is unit-test-application-events good?

unit-test-application-events does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does unit-test-application-events work with?

unit-test-application-events currently lists compatibility with codex, gemini-cli, opencode, cursor, github-copilot, claude-code.

What are alternatives to unit-test-application-events?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install unit-test-application-events?

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

Related skills

More from giuseppe-trisciuoglio/developer-kit

typescript-docs

by giuseppe-trisciuoglio/developer-kit

621

Deliver production-ready TypeScript documentation that serves multiple audiences through layered documentation architecture. Generate API docs with TypeDoc, create architectural decision records, and maintain comprehensive code examples.

Software EngineeringFrontend and DesignFirst seen Jan 19, 2026

nestjs

by giuseppe-trisciuoglio/developer-kit

596

This skill provides comprehensive guidance for building NestJS applications with TypeScript, including integration with Drizzle ORM for database operations. It covers all major aspects of NestJS development from basic module structure to advanced patterns like microservices and GraphQL.

Software EngineeringFrontend and DesignFirst seen Jan 19, 2026

spring-boot-test-patterns

by giuseppe-trisciuoglio/developer-kit

443

This skill provides comprehensive guidance for writing robust test suites for Spring Boot applications. It covers unit testing with Mockito, integration testing with Testcontainers, performance-optimized slice testing patterns, and best practices for maintaining fast feedback loops.

Software EngineeringFrontend and DesignFirst seen Feb 2, 2026

spring-boot-rest-api-standards

by giuseppe-trisciuoglio/developer-kit

409

This skill provides comprehensive guidance for building RESTful APIs in Spring Boot applications with consistent design patterns, proper error handling, validation, and architectural best practices based on REST principles and Spring Boot conventions.

Software EngineeringFrontend and DesignFirst seen Feb 2, 2026
Related skills

Alternatives in Software Engineering