Stop Writing Assertions, Start Validating!
summary
Shows how to replace lots of ad-hoc assertion code and conditional checks with JEE6 standard validators to validate object state. Presents concrete examples of using validators, handling and translating validation results, and applying design patterns and best practices to make validation simple to implement and integrate into existing projects.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 3:35Traditional validation problems
- 6:11Bean Validation 2.0 basics
- 9:02Validation groups in practice
- 12:39Object status validation
- 17:19Validation beyond DB writes
- 20:26Custom validation annotations
- 24:21Combining multiple validations
- 26:29Advanced validation strategies
- 30:03Validation code organization
- 30:25Internationalized validation messages
- 33:20Comparison with other frameworks
- 36:32Summary & Q&A
related talks
42mBetter Assertions with AssertJ
14mBean Validation 2.0 - you’ve put your annotations everywhere!
45mBean Validation 2 0
43mWhat's New in Bean Validation 2.0 - Java 8 Support and More
55mOn Annotations — Time to Stop the Demons
45mHow to Write Tests in 2021
46mDevelopment and Testing Strategies
57mProperty Testing in Java
