Registry / giuseppe-trisciuoglio

giuseppe-trisciuoglio/developer-kit/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.

Agent skill · version 0.0.0-main.1794522888.gfe73fb3 · from giuseppe-trisciuoglio/developer-kit

Install

npx yarkr-cli add skill:giuseppe-trisciuoglio/developer-kit/unit-test-scheduled-async

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:giuseppe-trisciuoglio/developer-kit/unit-test-scheduled-async
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:giuseppe-trisciuoglio/developer-kit/unit-test-scheduled-async

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:giuseppe-trisciuoglio/developer-kit/unit-test-scheduled-async

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.