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
ValidRentalPeriod
and ConstraintValidatorValidRentalPeriodValidator
- refactor validation tests to create custom assertion methods by creating a
ValidationVerification
class that encapsulates the validation assertion checks