$npx skillfedfor your agent

unit-test-boundary-conditions

This skill provides systematic testing patterns for Java boundary conditions and corner cases using JUnit 5 and AssertJ. It covers numeric limits, string edge states, collection boundaries, floating-point precision, date/time edges, and array indexing scenarios. Use parameterized tests and tolerance-based assertions to validate that your code handles limits, special inputs, and overflow/underflow correctly.

Unit Test Boundary Conditions helps you write comprehensive edge case and limit tests for Java code using JUnit 5 and AssertJ.

AI-generated summary based on this skill's SKILL.md

311 37 MITupdated by giuseppe-trisciuoglio

Decision gist · record as of 2026-06-22

Unit Test Boundary Conditions helps you write comprehensive edge case and limit tests for Java code using JUnit 5 and AssertJ. This skill provides systematic testing patterns for Java boundary conditions and corner cases using JUnit 5 and AssertJ. It covers numeric limits, string edge states, collection boundaries, floating-point precision, date/time edges, and array indexing scenarios. Use parameterized tests and tolerance-based assertions to validate that your code handles limits, special inputs, and overflow/underflow correctly.

manual: git clone https://github.com/giuseppe-trisciuoglio/developer-kit → cp -r developer-kit/plugins/developer-kit-java/skills/unit-test-boundary-conditions ~/.claude/skills/unit-test-boundary-conditions
plugins/developer-kit-java/skills/unit-test-boundary-conditions/SKILL.md · version 939425c2

Use it when

  • unit-test-boundary-conditions guides you to test numeric overflow and underflow by validating behavior at Integer.MIN_VALUE.
  • unit-test-boundary-conditions emphasizes parameterized tests in JUnit 5 to systematically cover edge cases.

Verify before relying

Read SKILL.md below before installing (3 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

giuseppe-trisciuoglio/developer-kit/unit-test-boundary-conditions · repository language: Python

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What does unit-test-boundary-conditions help me test in Java?

unit-test-boundary-conditions provides systematic testing patterns for Java boundary conditions and corner cases using JUnit 5 and AssertJ. It covers numeric limits, string edge states, collection boundaries, floating-point precision, date/time edges, and array indexing scenarios so your code handles limits, special inputs, and overflow/underflow correctly.

How do I test integer overflow and underflow in Java?

unit-test-boundary-conditions guides you to test numeric overflow and underflow by validating behavior at Integer.MIN_VALUE, Integer.MAX_VALUE, and Long boundary values. Use parameterized tests with AssertJ assertions to verify that operations either wrap correctly, throw exceptions, or produce expected results at these numeric limits.

What patterns does unit-test-boundary-conditions recommend for junit 5 edge case testing?

unit-test-boundary-conditions emphasizes parameterized tests in JUnit 5 to systematically cover edge cases. Combine @ParameterizedTest with value sources for boundary values, use @ValueSource or @CsvSource to test multiple scenarios (null, empty, whitespace, min/max), and apply tolerance-based AssertJ assertions for floating-point precision validation.

How should I validate null, empty, and whitespace input handling?

unit-test-boundary-conditions recommends testing null references, empty strings, empty collections, and whitespace-only strings as distinct edge cases. Use parameterized tests to pass these inputs systematically, then assert expected behavior—whether your code rejects them, treats them as valid, or handles them gracefully with clear error messages.

What array index and collection boundary tests does the skill cover?

unit-test-boundary-conditions covers off-by-one errors, index out of bounds scenarios, and collection size boundaries. Test accessing index 0, the last valid index (size - 1), and invalid indices like -1 or size. Use parameterized tests to validate that your code either throws IndexOutOfBoundsException or handles these cases as intended.

How does unit-test-boundary-conditions address floating-point and special value edge cases?

unit-test-boundary-conditions guides testing NaN, positive/negative infinity, and precision issues using AssertJ's floating-point assertions with configurable tolerance. For date/time, test leap years, daylight saving transitions, and boundary dates. Parameterized tests with @CsvSource let you validate multiple special values in a single test method.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

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

  1. Identify boundaries: List numeric limits (MIN_VALUE, MAX_VALUE, zero), string states (null, empty, whitespace), collection sizes (0, 1, many)
  2. Apply parameterized tests: Use @ParameterizedTest with

(truncated - see the full file via the links below)

File tree — 3 files
plugins/developer-kit-java/skills/unit-test-boundary-conditions/SKILL.md
plugins/developer-kit-java/skills/unit-test-boundary-conditions/references/concurrent-testing.md
plugins/developer-kit-java/skills/unit-test-boundary-conditions/references/parameterized-patterns.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Write comprehensive boundary and edge case tests for Java code”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

unit-test-utility-methods
by giuseppe-trisciuoglio · giuseppe-trisciuoglio/developer-kit

This skill generates test patterns for utility classes with static methods and pure functions. It covers null handling, edge cases, boundary conditions, and common utilities like string manipulation, math helpers, validators, and collection operations using AssertJ assertions and parameterized tests.

MITupdated Jun 2026
★ 311repo stars
test-quality
by decebals · decebals/claude-code-java

Test Quality guides you through writing maintainable Java tests using JUnit 5 and AssertJ. It covers the Arrange-Act-Assert pattern, collection and exception assertions, nested test organization, and parameterized testing to improve code coverage and test readability.

MITfor claude-codeupdated Feb 2026
★ 693repo stars
Java Test Generator
by dawiddutoit · dawiddutoit/custom-claude

Automatically generate well-structured JUnit 5 test cases for Java classes, complete with Mockito mocking, parameterized test scenarios, and edge case handling. The skill follows Arrange-Act-Assert patterns, creates tests for exception handling, verifies mock interactions, and targets high test coverage across service layers and Spring Boot components.

no license declared → metadata onlyupdated Jan 2026
★ 1repo stars
spring-boot-test-patterns
by giuseppe-trisciuoglio · giuseppe-trisciuoglio/developer-kit

Spring Boot Test Patterns guides you through layered testing strategies—from fast unit tests with mocked dependencies to full integration tests with real databases via Testcontainers. Learn focused slice testing with @DataJpaTest and @WebMvcTest, REST API testing with MockMvc, and container setup using @ServiceConnection for Spring Boot 3.5+.

MITupdated Jun 2026
★ 311repo stars
junit-5-skill
by LambdaTest · LambdaTest/agent-skills

This skill equips you to write robust JUnit 5 tests in Java, from basic assertions and exception handling to parameterized test cases and Mockito-driven mocking. It covers lifecycle management, nested test organization, and anti-patterns to avoid, with quick reference commands for Maven and Gradle execution.

MITupdated Jul 2026
★ 339repo stars
Java Testing
by pluginagentmarketplace · pluginagentmarketplace/custom-plugin-java

Build reliable unit tests for Java applications using JUnit 5, Mockito, and AssertJ with support for mocking, parameterized tests, and fluent assertions. Includes integration testing patterns with Testcontainers and Spring Boot Test, plus TDD and test coverage best practices to improve code quality.

no license declared → metadata onlyupdated Jan 2026
★ 40repo stars
Tags
numeric-limitserror-detectiontest-patternsdata-validationjunit-frameworkprecision-handlingcollection-statestemporal-boundariesoverflow-detection