Bug 344757 - running jpa/multitenant tests on servers
Summary: running jpa/multitenant tests on servers
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2011-05-04 15:23 EDT by Yiping Zhao CLA
Modified: 2022-06-09 10:33 EDT (History)
0 users

See Also:


Attachments
patch for run jpa/multitenant tests on server (41.42 KB, patch)
2011-05-05 10:53 EDT, Yiping Zhao CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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