Bug 290314 - 13 JPA2.0 tests in Advanced test suite shouldn't run on current JBoss version
Summary: 13 JPA2.0 tests in Advanced test suite shouldn't run on current JBoss version
Status: CLOSED 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-09-23 15:36 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:28 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2009-09-23 15:36:19 EDT
There are the following 13 JPA2.0 tests in advanced test suite running and failed on JBoss 5.0.1.GA and 5.1.0.GA:
jpa.advanced.EntityManagerJUnitTestSuite.testDetachNull
                                         testDetachRemovedObject
                                         testLockingLeftJoinOneToOneQuery
                                         testLockingLeftJoinOneToOneQuery2
                                         testGetProperties
                                         testDetachNonEntity
                                         testFindWithProperties
                                         testDetachManagedObject
                                         testDetachNonManagedObject
                                         testGetLockModeType
                                         testGetEntityManagerFactory
                                         testUnWrapClass    jpa.advanced.AdvancedJPAJunitTest.testMetamodelMinimalSanityTest

There is a flag "isJPA10" was introduced in the test framework (JUnitTestCase.java), and all those tests should run on any server that not supporting JPA2.0. All those tests didn't run on WLS/WAS/OC4J/Glassfish, but not sure what happened, they all ran on JBoss server even though there isn't JPA2.0 preview persistence.jar in the classpath, so all those tests failed on JBoss. Need to investigate the class loading for JBoss server during run time.
Comment 1 Kevin Yuan CLA 2010-07-19 16:02:31 EDT
Add flag "isJPA10()" in test suite level to skip all JPA2.0 tests on only JPA1.0 supported application servers, e.g. JBoss-5.1.0.GA, GlassFish-v2, WLS-10.3.3 and previous versions.

Code reviewed by Yiping Zhao.
Checked in trunk (2.2.0), revision:  7870.
Back port to 2.1.1, revision: 7871
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:28:10 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink