什么是 unit-test-bean-validation?
提供用于使用自定义验证器和约束违规进行单元测试 Jakarta Bean 验证(@Valid、@NotNull、@Min、@Max 等)的模式。在没有 Spring 上下文的情况下验证逻辑。在确保数据完整性和验证规则正确时使用。 来源:giuseppe-trisciuoglio/developer-kit。
提供用于使用自定义验证器和约束违规进行单元测试 Jakarta Bean 验证(@Valid、@NotNull、@Min、@Max 等)的模式。在没有 Spring 上下文的情况下验证逻辑。在确保数据完整性和验证规则正确时使用。
通过命令行快速安装 unit-test-bean-validation AI 技能到你的开发环境
来源:giuseppe-trisciuoglio/developer-kit。
This skill provides patterns for unit testing Jakarta Bean Validation annotations and custom validator implementations using JUnit 5. It covers testing built-in constraints (@NotNull, @Email, @Min, @Max), creating custom validators, cross-field validation, validation groups, and parameterized testing scenarios.
ValidatorFactory not found: Ensure jakarta.validation-api and hibernate-validator are on classpath.
Custom validator not invoked: Verify @Constraint(validatedBy = YourValidator.class) is correctly specified.
提供用于使用自定义验证器和约束违规进行单元测试 Jakarta Bean 验证(@Valid、@NotNull、@Min、@Max 等)的模式。在没有 Spring 上下文的情况下验证逻辑。在确保数据完整性和验证规则正确时使用。 来源:giuseppe-trisciuoglio/developer-kit。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-bean-validation提供用于使用自定义验证器和约束违规进行单元测试 Jakarta Bean 验证(@Valid、@NotNull、@Min、@Max 等)的模式。在没有 Spring 上下文的情况下验证逻辑。在确保数据完整性和验证规则正确时使用。 来源:giuseppe-trisciuoglio/developer-kit。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-bean-validation 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/giuseppe-trisciuoglio/developer-kit