giuseppe-trisciuoglio avatar

Unit Test Utility Methods

This generates JUnit 5 test patterns for utility classes and static methods where you don't need mocks. It covers the usual suspects: string manipulation, math helpers, validators, collection utilities. You get AssertJ assertions and parameterized test examples for testing null handling, edge cases, and boundary conditions. The skill pushes you toward descriptive test names and actually testing empty strings, whitespace, and max values instead of just happy paths. It's straightforward for pure functions but includes a rare Clock example when you do need a dependency. The constraints section is honest about floating point comparisons and thread safety, which saves you from common mistakes.

skills.sh installs
3.9K
GitHub stars
369
last updated
Aug 21, 2026

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill unit-test-utility-methods --agent claude-code

Installs into .claude/skills of the current project.

Files

Unit Testing Utility Classes and Static Methods

Overview

This skill generates tests for utility classes with static helper methods and pure functions. It provides patterns for testing null handling, edge cases, boundary conditions, and common utilities like string manipulation, calculations, data validation, and collections. Pure functions require no mocking.

When to Use

Use this skill when:

  • Writing tests for utility/helper classes with static methods
  • Testing pure functions with no state or side effects
  • Testing string manipulation, formatting, or transformation utilities
  • Testing calculation, conversion, or math helper functions
  • Testing data validation and formatter utilities
  • Verifying null/empty input handling in utility code
  • Testing collections or array helper methods

Instructions

Sponsors

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Backend & APIs, Testing & QA
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 102
1bytedance avatarclaude-to-deerflowbytedance/deer-flowInteract with DeerFlow AI agent platform via its HTTP API. Use this skill when the user wants to send messages or questions to DeerFlow for research/analysis, s3.9Kskills.sh installs
2giuseppe-trisciuoglio avatarqdrantgiuseppe-trisciuoglio/developer-kitProvides Qdrant vector database integration patterns with LangChain4j. Handles embedding storage, similarity search, and vector management for Java applications3.9Kskills.sh installs
3mvanhorn avatarpp-espnmvanhorn/printing-press-libraryUse this skill whenever the user asks about live sports scores, standings, team stats, game summaries (with box score, leaders, scoring plays, odds, and win pro3.9Kskills.sh installs
4dotnet avatarapple-crash-symbolicationdotnet/skillsSymbolicate .NET runtime frames in Apple platform .ips crash logs (iOS, tvOS, Mac Catalyst, macOS). Extracts UUIDs and addresses from the native backtrace, loca3.8Kskills.sh installs
5paperclipai avatarpaperclippaperclipai/paperclipInteract with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, dele3.8Kskills.sh installs
6yaklang avatarcsp-bypass-advancedyaklang/hack-skillsAdvanced Content Security Policy bypass techniques. Use when XSS or data exfiltration is blocked by CSP and you need to find policy weaknesses, trusted endpoint3.8Kskills.sh installs