unit-test-scheduled-async

SKILLWorkflowcommunity
v0.0.0giuseppe-trisciuoglioMITUpdated 1mo agoSource →

Provides patterns for unit testing Spring `@Scheduled` and `@Async` methods using JUnit 5, CompletableFuture, Awaitility, and Mockito. Covers mocking task execution and timing, verifying execution counts, testing cron expressions, validating retry behavior, and simulating thread pool behavior. Use w

Community-submitted skill. Not yet reviewed by the Forge team. Full prompt content may not be available.Request review →
329Repo stars
1Clients
1Formats
1mo agoLast update
Skill
Authorgiuseppe-trisciuoglio
Version0.0.0
LicenseMIT
CategoryWorkflow
Formatsskill.md
PromptNot published
Compatibility
Claude✓ Supported
Cursor
Copilot
ChatGPT
Gemini
About

Provides patterns for unit testing Spring `@Scheduled` and `@Async` methods using JUnit 5, CompletableFuture, Awaitility, and Mockito. Covers mocking task execution and timing, verifying execution counts, testing cron expressions, validating retry behavior, and simulating thread pool behavior. Use when testing background tasks, cron jobs, periodic execution, scheduled tasks, or thread pool behavio

Keywords
skillclaude