Permalink
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (19 sloc) 1.1 KB

Maven setup example to run the JSR-380 TCK

This is an example setup to run the Bean Validation TCK 2.0 against Glassfish 5 using Maven.

Prerequisites

How to run

  1. Extract Glassfish into a directory (this directory is referenced subsequently as <container.home>)

  2. 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>
    
  3. Make sure that container.home in pom.xml points to your <container.home> directory

  4. Run the TCK tests:

     mvn test
    
  5. Test results can be found in target/surefire-reports/index.html