
unit-test-bean-validation
Provides patterns for unit testing Jakarta Bean Validation
by giuseppe-trisciuoglioFree
Description
unit-test-bean-validation is an agent skill from the developer-kit collection by Giuseppe Trisciuoglio, listed on skills.sh. It gives an AI agent patterns for unit testing Jakarta Bean Validation, the Java standard for declaring constraints on objects, also known as JSR-380. The skill covers the built-in constraints such as NotNull, Email, Min, Max and Size, custom constraint annotations with their own validators, cross-field validation, and validation groups, and it uses Hibernate Validator as the implementation. The tests use JUnit 5 and run in isolation, without a Spring context, so they are fast and check only the validation logic. The skill's examples show how to assert on constraint violations and their messages. It suits Java developers who write DTOs and domain objects with validation annotations and want tests that prove the rules work.…
Highlights
- Tests for built-in constraints like NotNull and Email
- Custom constraint validators
- Cross-field validation and groups
- JUnit 5 tests without Spring
Ratings & Reviews
No ratings yet
Be the first to rate unit-test-bean-validation.
People also visit
unit-test-bean-validation FAQ
What does unit-test-bean-validation do?
It gives an AI agent patterns for unit testing Jakarta Bean Validation constraints with JUnit 5 and Hibernate Validator.
How do I install it?
Run: npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-bean-validation.
Is it free?
Yes. The skill is free to add.
Does it need Spring?
No. The skill says the tests run in isolation without a Spring context.
Which constraints does it cover?
NotNull, Email, Min, Max, Size, custom constraints, cross-field rules and validation groups.
What are the best unit-test-bean-validation alternatives?
Popular alternatives to unit-test-bean-validation include java-junit, unit-test-exception-handler and unit-test-json-serialization. See all unit-test-bean-validation alternatives







