Community
Participate
Working Groups
In jpa project cache testing in trunk, we have to run org.eclipse.persistence.testing.tests.jpa.advanced.multitenant.AdvancedMultiTenant123JunitTest and org.eclipse.persistence.testing.tests.jpa.advanced.multitenant.AdvancedMultiTenantSharedEMFJunitTest seperately since the two test suites represent different persistence units. So the static variable value of "family707Mafiosos" generated in testCreateMafiaFamily707() is lost when refering it at "Boss otherBoss = em.find(Boss.class, family707Mafiosos.get(0));" in testValidateMafiaFamily123(). So this test case bug is used to describe the scenario.
Created attachment 231480 [details] Test changes The offending test (testValidateMafiaFamily123()) needs to be overridden in AdvancedMultiTenant123JunitTest then. You can't rely on the static variables from the parent when dealing with just one PU at a time.
Changes pushed.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink