
Unit Test Parameterized
Parameterized JUnit 5 test patterns that run one test body across many inputs from annotated data sources.
- skills.sh installs
- 4K
- GitHub stars
- 372
- last updated
- Aug 21, 2026
What it does
- Covers
@ValueSource,@CsvSource,@MethodSource,@EnumSource, and@ArgumentsSourcewith custom display names for readable output - Provides Java examples for simple values, tabular data, complex objects, enum coverage, and custom argument providers
- Includes boundary-value patterns such as
Integer.MIN_VALUEandInteger.MAX_VALUE, plus error-condition tests for null and blank input - Designed for Java projects using Maven or Gradle that need data-driven tests, with CSV quoting and static factory rules noted
Install
$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill unit-test-parameterized -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Parameterized Unit Tests with JUnit 5
Overview
Provides patterns for parameterized unit tests in Java using JUnit 5. Covers @ValueSource, @CsvSource, @MethodSource, @EnumSource, @ArgumentsSource, and custom display names. Reduces test duplication by running the same test logic with multiple input values.
When to Use
- Writing JUnit tests with multiple input combinations
- Implementing data-driven tests in Java
- Running same test with different values (boundary analysis)
- Testing multiple scenarios from single test method
Instructions
- Add dependency: Ensure
junit-jupiter-paramsis on test classpath (included injunit-jupiter) - Choose source:
@ValueSourcefor simple values,@CsvSourcefor tabular data,@MethodSourcefor complex objects - Match parameters: Test method parameters must match data source types
- Set display names: Use
name = "{0}..."for readable output - Validate: Run
./gradlew test --infoormvn testand verify all parameter combinations execute
Examples
Maven / Gradle Dependency
JUnit 5 parameterized tests require junit-jupiter (includes params). Add assertj-core for assertions:
Details
- Repository
- github.com/giuseppe-trisciuoglio/developer-kit
- Categories
- Testing & QA, Java & JVM
- First seen
- May 16, 2026
More from giuseppe-trisciuoglio/developer-kit
All 95- Unit Test Controller Layer4K
- Unit Test Json Serialization4K
- Spring Boot Saga Pattern3.9K
- Nextjs Data Fetching3.9K
- Spring Data Neo4j3.9K
- Unit Test Security Authorization3.9K
- Nx Monorepo3.9K
- Langchain4j Spring Boot Integration3.9K
- Langchain4j Tool Function Calling Patterns3.9K
- Langchain4j Rag Implementation Patterns3.9K
- Unit Test Scheduled Async3.9K
- Rag3.9K
- Unit Test Utility Methods3.9K
- Qdrant3.9K
- Unit Test Exception Handler3.9K
- Unit Test Mapper Converter3.9K
- Langchain4j Ai Services Patterns3.9K
- Unit Test Caching3.9K
- Unit Test Config Properties3.9K
- Unit Test Application Events3.9K
- Langchain4j Vector Stores Configuration3.9K
- Langchain4j Mcp Server Patterns3.9K
- Aws Sdk Java V2 S33.9K
- Langchain4j Testing Strategies3.9K
Similar to Unit Test Parameterized
More Testing & QA
unit-test-boundary-conditionsSkillgiuseppe-trisciuoglio/developer-kit4.3K installsJava unit tests for numeric, string, collection, and date/time limits using JUnit 5 and AssertJ.
unit-test-bean-validationSkillgiuseppe-trisciuoglio/developer-kit5.1K installsPatterns for unit testing Jakarta Bean Validation constraints and custom validators without Spring context.
131-java-testing-unit-testingSkilljabrena/plinth134 installsJava unit testing guidance for JUnit 5, AssertJ, and Mockito, with compile-first and full-verify gates.
java-testingSkillpluginagentmarketplace/custom-plugin-java917 installsJava testing guide covering JUnit 5, Mockito, AssertJ, and Spring Boot integration tests with Testcontainers.
test-qualitySkilldecebals/claude-code-java354 installsStructured JUnit 5 and AssertJ testing guide covering assertion style, AAA structure, naming, and parameterized tests.
421-frameworks-quarkus-testing-unit-testsPluginjabrena/plinth462 starsUse when you need to write fast unit tests for Quarkus applications — including pure tests with @ExtendWith(MockitoExtension.class), @QuarkusTest with @InjectMo