Contents

Summary

The EclipseLink test suites are written using JUnit. They consist of a set of jars and classes that contain various tests and resources. The tests are contained in the eclipselink.*.test projects. This page is intended to outline the setup and execution steps required to successfully run the JUnit tests. There are 2 ways to checkout EclipseLink and for each of these there are 2 ways to run tests.

Checkout using Subclipse all projects individually into your eclipse workspace

Build classes in eclipse and run/debug there

Build/run classes using Ant

or.. Checkout using TortoiseSVN the root trunk into a folder outside your workspace (IE: c:/view_root) and either use ant to build an eclipselink.jar or create proxy projects using link to source from eclipse - Recommended if you would like to build the eclipselink.jar - but you will require some build.properties changes.

You will need to enable some ports or just disable your software firewall.

Eclipse 3.2-3.4|1.5 installed with the subclipse plug-in for in-eclipse checkouts

Referenced core projects org.eclipse.persistence.core and eclipselink.core.lib checked out into workspace or view

Required projects for your specific view org.eclipse.persistence.sdo|moxy|jpa|dbws, eclipselink.sdo|moxy|jpa|dbws.lib and eclipselink.sdo|moxy|jpa|dbws.test checked out into workspace or view

If using Ant instead of Eclipse to run - edit build.properties either at this project level or better - globally override the following in your user directory on windows: C:/Documents and Settings/<user-dir>/build.properties

Some JDBC drivers may require the system library path to be set, or dlls to be on the path

TOOLS_LIB variable has been mapped to your JDK tools.jar

The following jars may be placed into extension.oracle.lib.external

AQAPI_LIB variable has been mapped to your aqapi*.jar

SPATIAL_LIB variable has been mapped to sdoapi.jar

XDB_LIB variable has been mapped to xdb.jar

XML_LIB variable has been mapped to xml.jar

XMLPARSERV2_LIB variable has been mapped to the oracle specific xmlparserv2.jar

Eclipse Preparation

Note:Before testing in Eclipse using the Testing Browser - you will need to a full root build of EclipseLink in 'trunk>ant' so that the test jars eclipse*model.jar get created and placed on the root of jpa/eclipselink.jpa.test. Please refresh your eclipselink.jpa.test project to pick these up before running the Testing Browser eclipse launch target.