JPOX
JPOX
 JPOX Version 1.0
Configuration | Tutorials | Worked Examples | Developer
JPOX Design
JPOX Tests
Running the JDOTCK
Preparing
  • Create a new folder to extract the contents of the JDOTCK. Hereinafter known as JDOTCK
  • You must choose either to run datastore or application identity tests
  • Following the type of test you've choosen fetch the files from CVS.
    • datastore identity tests, the CVS path is: JPOX/TCK/JDO 1.0/datastore
    • application identity tests, the CVS path is: JPOX/TCK/JDO 1.0/application
  • Copy the fetched files to JDOTCK folder. Be sure to put the files in the right place
  • Create a new file called iut.properties. This file contains the properties for connection to the datastore. e.g.
  • javax.jdo.PersistenceManagerFactoryClass=org.jpox.PersistenceManagerFactoryImpl
    javax.jdo.option.ConnectionUserName=jdotckdatastore
    javax.jdo.option.ConnectionPassword=password
    javax.jdo.option.ConnectionDriverName=com.microsoft.jdbc.sqlserver.SQLServerDriver
    javax.jdo.option.ConnectionURL=jdbc:microsoft:sqlserver://127.0.0.1:1433;SelectMethod=cursor
    javax.jdo.option.Optimistic=true
    javax.jdo.option.RetainValues=true
    javax.jdo.option.NontransactionalRead=true
    javax.jdo.option.Multithreaded=true
    org.jpox.autoCreateTables=true
    org.jpox.validateTables=false
    org.jpox.validateConstraints=false	
    
  • Create a new folder called iut_jars as JDOTCK/iut_jars
    • put the following files inside JDOTCK/iut_jars folder:
      • jpox.jar
      • jdo.jar (jdo 1.0.1)
      • bcel-5.1.jar
      • log4j-1.2.8.jar
      • jta.jar
      • xercesImpl.jar (only if needed)
      • xmlParserAPIs.jar (only if needed)
    • put also your database driver jar files inside JDOTCK/iut_jars
  • The JDOTCK comes with a jdo.jar 1.0. Replace the jdo.jar (1.0) located at JDOTCK to a new one jdo.jar (1.0.1).
  • Compile and enhance the files.
    • For datastore identity run:
      • ant usedatastoreidentity
      • ant
    • For application identity run:
      • ant useapplicationidentity
      • ant
Running

To run the tests, use the two commands:

  • ant runagent
  • ant javatest

Configuring and Starting

Inside the javatest

  • create a work directory
  • go to the menu + Tasks + Monitor Agent Activity
  • enable the option "Listening"
  • go to the menu + Window + JDO 1.0 TCK ...
  • go to the menu + Run + Start
  • click OK
  • Now configure the test. Say no to all options, but say yes to a exclude list.
  • Add an exclude list, The exclude list file is available inside the JDOTCK dir
  • Add an environment file, which is also available inside the JDOTCK dir, as testsuite.jte
  • Select the test environment.
  • Start the tests.

Results

The latest results from the JDO TCK can be found here