Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311782

Summary: Need to enable the SDO tests for server to run with WLS, WAS and JBoss
Product: z_Archived Reporter: Edwin Tang <edwin.tang>
Component: EclipselinkAssignee: Edwin Tang <edwin.tang>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: blaise.doughan, david.mccann
Version: unspecifiedKeywords: test
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 308880    
Bug Blocks: 312302    
Attachments:
Description Flags
patch file
none
patch file
none
2nd patch file
none
3rd patch file none

Description Edwin Tang CLA 2010-05-05 15:24:28 EDT
Given that bug 308880 has been fixed, we need to create an Ant project to enable the SDO tests for server to run with WLS, WAS and JBoss. 

We can leverage the existing infrastructure(the Ant projects under jpa/eclipselink.jpa.test) that are currently used to run JPA tests on servers.
Comment 1 Edwin Tang CLA 2010-05-10 14:13:53 EDT
Created attachment 167773 [details]
patch file
Comment 2 Edwin Tang CLA 2010-05-10 14:40:18 EDT
Change Summary:
===============
1. The patch contains an ANT project, which can compile the SDO server tests, build application ear file, deploy/undeploy the ear to WLS, WAS and JBoss, run the tests and generate test report. These are the file list:
build.xml
build.properties
test.properties

2. It leverages the ANT projects for running JPA tests on WLS, WAS and JBoss, which are located at trunk/jpa/eclipselink.jpa.test. Here is the list:
weblogic.xml
weblogic.properties
websphere.xml
websphere.properties
jboss.xml
jboss.properties

3. Assuming the an application server(WLS, WAS or JBoss) is started, change test.properties to specific which application server will be tested on, execute "ant test" to run the SDO server tests
Comment 3 Edwin Tang CLA 2010-05-10 15:34:35 EDT
Created attachment 167793 [details]
patch file

Removed unnecessary dependencies from the classpath, based on Yiping's feedback
Comment 4 Edwin Tang CLA 2010-05-10 15:58:42 EDT
Checked the patch in 2.1.0

Code reviewed by: Yiping Zhao
Comment 5 Edwin Tang CLA 2010-05-13 13:37:52 EDT
Created attachment 168423 [details]
2nd patch file

To be able to deploy an SDO application to JBoss, changed target <jboss-install> in jboss.xml to copy ${jpatest.2.sdo.plugins.dir}/${commonj.sdo.jar} to <jboss_home>/lib
Comment 6 Edwin Tang CLA 2010-05-13 13:51:53 EDT
Checked in the 2nd patch into 2.1.0

Code reviewed by: Kevin Yuan
Comment 7 Edwin Tang CLA 2010-05-17 11:34:48 EDT
Created attachment 168751 [details]
3rd patch file
Comment 8 Edwin Tang CLA 2010-05-17 11:37:44 EDT
To be able to deploy an SDO application to WebSphere, changed target
<websphere-install> in websphere.xml to copy
${jpatest.2.sdo.plugins.dir}/${commonj.sdo.jar} to ${was.home}/lib/ext
Comment 9 Edwin Tang CLA 2010-05-17 14:05:55 EDT
Checked the 3rd patch into 2.1.0

Code reviewed by: Yiping Zhao, Blaise Doughan and David Mccann
Comment 10 Eclipse Webmaster CLA 2022-06-09 10:13:53 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink