April 2018
Intermediate to advanced
382 pages
10h 11m
English
Our User class uses three of the new constraints introduced by Bean Validation 2.0:
Then we create a test class (using JUnit) to test our validations. It first instantiates Validator:
@BeforeClasspublic static void setUpClass() { validator = Validation.buildDefaultValidatorFactory().getValidator();}
Validator is an API that validates beans according to the constraints defined ...
Read now
Unlock full access