Entity
#27 - Create Rental Order - Part 3
Custom Bean Validation
Let's create a custom validation for a rental order: a valid rental period
- create a custom validation annotation
ValidRentalPeriodand ConstraintValidatorValidRentalPeriodValidator - refactor validation tests to create custom assertion methods by creating a
ValidationVerificationclass that encapsulates the validation assertion checks