Community
Participate
Working Groups
<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
Created attachment 194836 [details] patch for run jpa/multitenant tests on server
check in the changes to trunk as revision 9321. code is reviewed by Guy Pelletier and Kevin Yuan.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink