Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (19 sloc) 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 )
  2. Add the JVM option validation.provider to domain.xml under /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 directory
  4. Run the TCK tests:

    mvn test
    
  5. Test results can be found in target/surefire-reports/index.html
Jump to Line
Something went wrong with that request. Please try again.