Unit Test Scheduled Async

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 behavior.

tomevault-io 924e457 2 files · 6.6 KB Updated

File contents

tomevault-io/skills-registry/tree/main/giuseppe-trisciuoglio--developer-kit--unit-test-scheduled-async commit 924e4576c1

Frequently asked questions

npx skillmds@latest add tomevault-io/unit-test-scheduled-async