Community
Participate
Working Groups
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)
Created attachment 150156 [details] fix test failures of advanced and fieldaccess advanced model
Created attachment 150159 [details] fix test failures of advanced and fieldaccess advanced model
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
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink