New advertisers: 50% off your first month with code FIRSTMONTHSee slots
giuseppe-trisciuoglio avatar

Unit Test Boundary Conditions

Java unit tests for numeric, string, collection, and date/time limits using JUnit 5 and AssertJ.

skills.sh installs
4.3K
GitHub stars
372
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers integer, string, collection, floating-point, date/time, and array index boundary testing with runnable examples
  • Includes parameterized patterns (@ValueSource, @CsvSource) for testing min, max, and just-outside values together
  • Enforces exact arithmetic via Math.addExact() and Math.subtractExact() and tolerance-based float assertions with within()
  • Designed for Java developers writing .java test files who need edge and corner cases covered

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill unit-test-boundary-conditions -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Unit Testing Boundary Conditions and Edge Cases

Overview

Systematic patterns for testing boundary conditions, corner cases, and limit values in Java using JUnit 5. Covers numeric boundaries, string edge cases, collection states, floating-point precision, date/time limits, and off-by-one scenarios.

When to Use

  • Numeric min/max limits, null/empty/whitespace inputs
  • Overflow/underflow validation, collection boundaries
  • Off-by-one errors, floating-point precision

Instructions

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Testing & QA, Java & JVM

More from giuseppe-trisciuoglio/developer-kit

All 95

Similar to Unit Test Boundary Conditions

More Testing & QA