Bug 270853 - testBeerLifeCycleMethodAnnotationIgnored within xml merge testing need to be relocated
Summary: testBeerLifeCycleMethodAnnotationIgnored within xml merge testing need to be ...
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: Guy Pelletier CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2009-04-01 14:35 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:08 EDT (History)
2 users (show)

See Also:


Attachments
Proposed changes (7.74 KB, patch)
2009-04-02 10:23 EDT, Guy Pelletier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2009-04-01 14:35:37 EDT
Based on Guy's transaction (Revision: 3757 - Fix for bug 241413 - JPA 2.0 Create an EclipseLink Map Mapping for Join Table mappings), all xml testing on server failed because there is one import "import org.eclipse.persistence.testing.models.jpa.inherited.Beer;" in the test - jpa.xml.merge.inherited.EntityMappingsMergeInheritedJUnitTestCase for testBeerLifeCycleMethodAnnotationIgnored, but this import should be "import org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.Beer;". In order to make others xml testing passed on server, I have to change above import, but this change resulted in the one test (testBeerLifeCycleMethodAnnotationIgnored) failed with the following exception:

<testcase classname="org.eclipse.persistence.testing.tests.jpa.xml.merge.inherited.EntityMappingsMergeInheritedJUnitTestCase" name="testBeerLifeCycleMethodAnnotationIgnored" time="0.047">
    <failure message="The callback method [PrePersist] was called." type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: The callback method [PrePersist] was called.
	at org.eclipse.persistence.testing.tests.jpa.xml.merge.inherited.EntityMappingsMergeInheritedJUnitTestCase.testBeerLifeCycleMethodAnnotationIgnored(EntityMappingsMergeInheritedJUnitTestCase.java:294)
	at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:396)
	at org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)
	at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
	at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
	at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
	at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
	at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
	at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
	at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:15)
	at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
	at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:30)
	at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
	at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
	at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
	at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
	at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
	at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
	at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
	at $Proxy233.runTest(Unknown Source)
	at org.eclipse.persistence.testing.framework.server.TestRunner_q0mh0s_TestRunnerImpl.runTest(TestRunner_q0mh0s_TestRunnerImpl.java:61)
	at org.eclipse.persistence.testing.framework.server.TestRunner_q0mh0s_TestRunnerImpl_WLSkel.invoke(Unknown Source)
	at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
	at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
	at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
	at weblogic.security.service.SecurityManager.runAs(Unknown Source)
	at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
	at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
	at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
</failure>
Comment 1 Guy Pelletier CLA 2009-04-02 10:23:45 EDT
Created attachment 130697 [details]
Proposed changes
Comment 2 Guy Pelletier CLA 2009-04-02 10:34:47 EDT
Changes have been submitted.

Reviewed by: Tom Ware

No new tests. Once the incorrect import was modified, the existing testBeerLifeCycleMethodAnnotationIgnored from org.eclipse.persistence.testing.tests.jpa.xml.merge.inherited.EntityMappingsMergeInheritedJUnitTestCase
would fail. With these changes the test now passes.
Comment 3 Peter Krogh CLA 2009-08-26 09:50:47 EDT
Mass update to change fixed in target.
Comment 4 Peter Krogh CLA 2009-08-26 09:54:00 EDT
Mass update to change fixed in target.
Comment 5 Peter Krogh CLA 2009-08-26 09:59:58 EDT
Mass update to change fixed in target.
Comment 6 Peter Krogh CLA 2009-08-26 10:02:00 EDT
Mass update to change fixed in target.
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:08:13 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink