Bug 292955 - "testVerifyEmployeeCacheSettings" in JPA advanced model failed on Spring
Summary: "testVerifyEmployeeCacheSettings" in JPA advanced model failed on Spring
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: 2009-10-21 16:16 EDT by Yiping Zhao CLA
Modified: 2022-06-09 10:20 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yiping Zhao CLA 2009-10-21 16:16:51 EDT
This model failed with following error message:

<failure message="A descriptor for the Employee alias was not found in the default1 PU." type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: A descriptor for the Employee alias was not found in the default1 PU.
	at org.eclipse.persistence.testing.tests.jpa.advanced.AdvancedJPAJunitTest.testVerifyEmployeeCacheSettings(AdvancedJPAJunitTest.java:310)
	at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:428)

Note: If I just AdvancedJPAJunitTest individually, the test will pass. or if I put "AdvancedJPAJunitTest " to be the first one to execute in AdvancedServerTestSuite, the tests will pass when running AdvancedServerTestSuite. So looks like there is another persistence unit "default1" defined in persistence.xml which is included in model jars under classpath, but I can't find it.
Comment 1 Yiping Zhao CLA 2009-10-29 15:58:59 EDT
From the nightly test result since 2009-10-27, the test passed in advanced model, I don't know why. So I close the bug as invalid, i will reopen it if it occurs again later.
Comment 2 Yiping Zhao CLA 2010-01-27 14:24:09 EST
it failed in EclipseLink 1.2 Branch Spring 3.0
Comment 3 Kevin Yuan CLA 2010-06-03 14:43:35 EDT
This bug fix did not make the cut off for 2.1. We are deferring the bugs to
Future where we can properly sort them all together and severity. And then
assign them accordingly to future patch sets and releases.
Comment 4 Yiping Zhao CLA 2010-07-29 14:34:55 EDT
The issue only appears in EclipseLink 1.2 as for today. The test is same as that in EclipseLink 2.0, 2.1 and trunk. The fix is put the AdvancedJPAJunitTest as the first one to execute in AdvancedServerTestSuite, the change has been checked in 1.2 as revision 7955.

code is reviewed By Kevin Yuan.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:20:26 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink