This is an example setup to run the Bean Validation TCK 1.1 against Glassfish 4 using Maven.
- Git
- Maven >= 3.0.4
- JDK 7
- Glassfish 4 installation
-
Extract Glassfish into a directory (this directory is referenced subsequently as <container.home>)
-
Add the JVM option validation.provider to domain.xml under <container.home>/glassfish/domains/domain1/config in the section (this is used by the test harness to look up the Bean Validation provider under test):
<java-config> ... <jvm-options>-Dvalidation.provider=org.hibernate.validator.HibernateValidator</jvm-options> </java-config>
-
Make sure that container.home in pom.xml points to your <container.home> directory
-
Run the TCK tests:
mvn test
-
Test results can be found in target/surefire-reports/index.html