Automatic Unit Testing JPA + CDI + Bean Validation

Actually this is more automatic integration testing since the components are tied together.  I used Weld for my CDI, EclipseLink for my JPA and Hibernate Validator for my Bean Validation implementations and H2 for my in-memory test database.

TL;DR the code

Here’s the code for the BaseJpaCdiBeanValidationTest.