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

Bug 344757

Summary: running jpa/multitenant tests on servers
Product: z_Archived Reporter: Yiping Zhao <yiping.zhao>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: test
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch for run jpa/multitenant tests on server none

Description Yiping Zhao CLA 2011-05-04 15:23:38 EDT
<eclipselink.jpa.test>\src\org\eclipse\persistence\testing\tests\jpa\advanced\multitenantAdvancedMultiTenantJunitTest.java has two persistence units associated, which can't be run on server automatically, so AdvancedMultiTenantServerTestSuite.java has been added to include AdvancedMultiTenantSharedEMFJunitTest.java which is correspondent to "multi-tenant-shared-emf PU" and AdvancedMultiTenant123JunitTest.java which is correspondent to "multi-tenant-123 PU".

Also the tests has "em.setProperty(...)" which is not supported for JPA1.0 servers, so the tests won't run JPA1.0 servers. 

The changes are:
1. add <server-test-advanced-multitenant> in <eclipselink.jpa.test>\build.xml
2. add server side persistence.xml under <eclipselink.jpa.test>\resource\eclipselink-advanced-multitenant-model
3. add three test classes as described above:
   AdvancedMultiTenantServerTestSuite
   AdvancedMultiTenantSharedEMFJunitTest
   AdvancedMultiTenant123JunitTest
Comment 1 Yiping Zhao CLA 2011-05-05 10:53:00 EDT
Created attachment 194836 [details]
patch for run jpa/multitenant tests on server
Comment 2 Yiping Zhao CLA 2011-05-06 13:55:59 EDT
check in the changes to trunk as revision 9321. code is reviewed by Guy Pelletier and Kevin Yuan.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:33:26 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink