Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.07 KB

readme.md

File metadata and controls

27 lines (19 loc) · 1.07 KB

Maven setup example to run the JSR-349 TCK

This is an example setup to run the Bean Validation TCK 1.1 against Glassfish 4 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