Bug 292951 - test failures of "test-spring-srg"
Summary: test failures of "test-spring-srg"
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 15:56 EDT by Yiping Zhao CLA
Modified: 2022-06-09 10:30 EDT (History)
2 users (show)

See Also:


Attachments
fix test failures of advanced and fieldaccess advanced model (5.16 KB, patch)
2009-10-21 16:02 EDT, Yiping Zhao CLA
no flags Details | Diff
fix test failures of advanced and fieldaccess advanced model (4.74 KB, patch)
2009-10-21 16:08 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 2009-10-21 15:56:21 EDT
There are two kinds of failures:

1. testIsLoaded(), testIsLoadedAttribute(), testGetIdentifier(), testIsLoadedWithReference(), testIsLoadedWithoutReference(), testIsLoadedWithoutReferenceAttribute(), testGetIdentifier() in EntityManagerJUnitTestSuite. 
        Exception Description: No transaction is currently active

javax.persistence.TransactionRequiredException:
Exception Description: No transaction is currently active
at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionWrapper.throwCheckTransactionFailedException(EntityTransactionWrapper.java:109)
at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionWrapper.checkForTransaction(EntityTransactionWrapper.java:50)
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.checkForTransaction(EntityManagerImpl.java:1511)
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush(EntityManagerImpl.java:610)
at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:358)
at $Proxy1.flush(Unknown Source)
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testIsLoaded(EntityManagerJUnitTestSuite.java:8595)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:428)

2. testMetamodelMinimalSanityTest()
         The type [null] is not the expected [EntityType] for the key class [class org.eclipse.persistence.testing.models.jpa.advanced.LargeProject].

java.lang.IllegalArgumentException: The type [null] is not the expected [EntityType] for the key class [class org.eclipse.persistence.testing.models.jpa.advanced.LargeProject].
at org.eclipse.persistence.internal.jpa.metamodel.MetamodelImpl.entity(MetamodelImpl.java:152)
at org.eclipse.persistence.testing.tests.jpa.advanced.AdvancedJPAJunitTest.testMetamodelMinimalSanityTest(AdvancedJPAJunitTest.java:199)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:428)
Comment 1 Yiping Zhao CLA 2009-10-21 16:02:27 EDT
Created attachment 150156 [details]
fix test failures of advanced and fieldaccess advanced model
Comment 2 Yiping Zhao CLA 2009-10-21 16:08:15 EDT
Created attachment 150159 [details]
fix test failures of advanced and fieldaccess advanced model
Comment 3 Yiping Zhao CLA 2009-10-21 16:30:37 EDT
checked in the patch in Main as revision 5607. This patch fixes:

1. testIsLoaded(), testIsLoadedAttribute(), testGetIdentifier(),
testIsLoadedWithReference(), testIsLoadedWithoutReference(),
testIsLoadedWithoutReferenceAttribute(), testGetIdentifier() in
EntityManagerJUnitTestSuite

2. testGetIdentifier() in AdvancedCompositePKJunitTest

3. testMetamodelMinimalSanityTest(0 in AdvancedJPAJunitTest

4. remove redundant test method entries for testIsLoaded(), testIsLoadedAttribute(), testGetIdentifier(),
testIsLoadedWithReference(), testIsLoadedWithoutReference(),
testIsLoadedWithoutReferenceAttribute() in EntityManagerJunitTestSuite

Code Reviewed by: James Sutherland
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:30:27 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink