#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 ConstraintValidator ValidRentalPeriodValidator
  • refactor validation tests to create custom assertion methods by creating a ValidationVerification class that encapsulates the validation assertion checks
Copyright © Mario David.