关于
This skill provides a comprehensive set of patterns and boilerplate for unit testing Jakarta Bean Validation annotations like @NotNull, @Email, and @Size, as well as complex custom and cross-field validators. By utilizing a standalone Validator instance without the overhead of a Spring context, it enables high-performance, isolated tests for data integrity rules and domain model constraints. It covers common scenarios including error message verification, validation groups, and parameterized testing for edge cases, ensuring robust data validation logic in Java applications.