How to obtain the TCK for testing

The JSR303 Bean Validation TCK was created by Red Hat/JBoss and is available under the Apache License, version 2.0, which allows anyone to download and run the TCK without having to sign the Sun/ASF NDA.

Please see the Bean Validation TCK website for details on how to setup a local JBoss instance for running the TCK. The bval-tck module should be used to execute the TCK against Apache BVal.

Steps to run the TCK

For the below build and TCK runs, it is assumed that you have the latest Sun 1.6.0 JDK installed and set as the default Java implementation.

Standalone

  1. Build the project and run the JUnit tests:

    cd bval/trunk
    mvn clean install
    
  2. Run the JBoss provided TCK in standalone mode -

    cd bval/trunk/bval-tck
    mvn -Ptck
    

In-container

  1. Build the project and run the JUnit tests:

    cd bval/trunk
    mvn clean install
    
  2. Install JBoss Application Server; version 5.1.0 or later.

  3. Run the JBoss provided TCK in the in-container mode, against your JBoss AS installation (where $jbosshome denotes the installation path):

    cd bval/trunk/bval-tck
    mvn -Ptck,incontainer -Djboss.home=$jbosshome
    

Certification against the JCP provided TCK

TBD - Must we use the Sun/Oracle provided TCK for final certification testing?