Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

EclipseLink/Bugs/309681

Contents

Bug 309681 - Investigate WDF test annotated with @ToBeInvestigated

The test suite jpa/eclipselink.jpa.wdf.test ("WDF tests") has originally not been written for EclipseLink but for a different JPA implementation. Many tests don't fit perfectly to EclipseLink but are failing due to different issues. In order to benefit from the additional test set as soon as possible, it has been decided to exclude failing tests from a regular test execution using the special skip annotations. Skipping the questionable tests allows to incorporate the WDF tests into the nightly regression test suite.

The annotation @Bugzilla(bugid=<bug id>) indicates that a test is skipped due to an issue, which is followed up in an bugzilla ticket with id <bug id>.

The annotation @ToBeInvestigated indicates that a test is not compatible with EclipseLink and is skipped but the reason for the incompatibility has to be investigated.

Analysis of Tests by Package

The listing below contains tests with known issues onyl. Good (non-skipped) tests are not contained.

org.eclipse.persistence.testing.tests.wdf.jpa1.entitymanager

TestCache
method skip annotation bugid analysis
testContains @ToBeInvestigated
testInvalidateRemote @ToBeInvestigated
testInvalidateUpdate @ToBeInvestigated
testNotOwningSide @ToBeInvestigated
testNotOwningSide2 @ToBeInvestigated
testRelation @ToBeInvestigated
testTimetoLive @ToBeInvestigated
TestCascadeFlush
method skip annotation bugid analysis
testSimpleCascadeToDetached2a solved 316271 Test persisting a detached entity checks for wrong exception type
testSimpleCascadeToDetached2b solved 316271 Test persisting a detached entity checks for wrong exception type
testSimpleCascadeToDetached2c solved 316271 Test persisting a detached entity checks for wrong exception type
TestCascadeMerge
method skip annotation bugid analysis
testCascadeDetached @ToBeInvestigated
testSimpleCascadeNew @ToBeInvestigated
TestCascadeRefresh
method skip annotation bugid analysis
testCascade @ToBeInvestigated
TestCascadeRemove
method skip annotation bugid analysis
testCircularCascade @ToBeInvestigated
TestEntityManagerFactory
method skip annotation bugid analysis
testEntityManagerFactoryCloseActiveTransaction @ToBeInvestigated
TestFlush
method skip annotation bugid analysis
testChangedEntityIgnoredByFlush @Bugzilla 309681 A flush before a query flushes an entity not queried for. This could be surpressed. discussion
testRelationshipToRemoved @Bugzilla 311760 Employee has a relationship to Cubicle, which has been removed (not yet flushed). This should be rejected with IllegalStateException according to JPA1: 3.2.3. discussion
testRelationshipToRemovedLazy @Bugzilla 311760 An employee has a collection of projects. We remove a project, which is a project of emp1. We assigne the projects of emp1 (as a lazy collection) to a newly created emp2. Emp2 now has a reference to the removed project. Persisting emp2 succeeds in spite of JPA1: 3.2.3. an IllegalStateException would be expected. discussion
TestGetReference
method skip annotation bugid analysis
testCascadePersistOnFlush @ToBeInvestigated
testCascadeRemove @ToBeInvestigated
TestMerge
method skip annotation bugid analysis
testIlegalArgumentWithDeserializedEntity @ToBeInvestigated
testIlegalArgumentWithLazyRelationPending @ToBeInvestigated
testMergeDetachedWithRelation @ToBeInvestigated
testMergeNewWithRelation @ToBeInvestigated
testMergeRemoved @ToBeInvestigated
testNastyTimestampTwice solved 311856 discussion
testNastyTimestampTwiceNotInitial solved 311856 discussion
TestPersist
method skip annotation bugid analysis
testNastyTimestampTwice solved 311856 non-entity subclass of entity cannot be persisted discussion
testPersistDeleteExecuted @Bugzilla 309681 does not fail; no special state for "DELETE_EXECUTED"
testPersistRemovedEntityWithIdModifiedInPrePersist @Bugzilla 309681 removed entity can be reinserted in same PC; em does not contain removed entity although not yet flushed
testPersistRemovedEntityWithIdModifiedInPrePersistFlushed @Bugzilla 309681 removed entity can be reinserted in same PC; no state DELETE_EXECUTED discussion
TestReadOnly
method skip annotation bugid analysis
testCacheQueriedEntity @Bugzilla 309681 fails with a NPE; it turns out that an entity annotated with @ReadOnly is not inserted at all discussion
testIllegalFieldModification @Bugzilla 309681 fails with a NPE; it turns out that an entity annotated with @ReadOnly is not inserted at all
testQueryCachedEntity @Bugzilla 309681 fails with a NPE; it turns out that an entity annotated with @ReadOnly is not inserted at all
TestRefresh
method skip annotation bugid analysis
testRefreshDeleted solved 311868 EL throws IllegalArgumentException; seems in alignment with SPEC
testRefreshManagedCheckContains @Bugzilla 309681 if a refresh fails with an EntityNotFoundException, the entity is still contained in the PC. Issue? discussion
testRefreshManagedNew @Bugzilla 309681 test assumes that refresh transits a "managed_new" entity to managed state -> duprec discussion
testRefreshManagedNewNotOnDB @Bugzilla 309681 we assume that referesh is not ignored but it throws EntitynotFoundException, instead -> not covered by SPEC
TestRemove
method skip annotation bugid analysis
testRemoveFlushRemoveAgain @Bugzilla 309681 test assumes has special state DELETED_EXECUTED, which EclipseLink hasn't discussion

org.eclipse.persistence.testing.tests.wdf.jpa1.foreignkeys

TestForeignKeys
method skip annotation bugid analysis
testCriminal @ToBeInvestigated the atempts to persist and remove a complex network of related entities; it passes and fails intermittently with a fk contraint violation
testCycle @ToBeInvestigated the atempts to persist and remove a complex network of related entities; it passes and fails intermittently with a fk contraint violation
testFKException @ToBeInvestigated test assumes that a circle can be inserted on Oracle only because Oracle deffers fk constraint checks until commit; EclipseLink is able to detect a circle upon insert; test can be fixed (should be renamed)
testSelfishKey @ToBeInvestigated the test persists a simple network of three related nodes; persisting suceeds but deleting the networked nodes fails intermittently

org.eclipse.persistence.testing.tests.wdf.jpa1.generator

TestIdentity
method skip annotation bugid analysis
testJoinedSubclass solved 312010 test assumes that the id is available directly after the persist; EclipseLink deferes the persist to the flush; is there an option to configure the behavior? discussion
testMerge solved 312010 assumes id available after persist
testPersist solved 312010 assumes id available after persist
testPersistNoTx solved 312010 test asserts that persist requires a transaction for entities using ID columns; EclipseLink can do the persist outside a transaction; test needs to be adjusted; also assumes id available after persist
TestSequence
method skip annotation bugid analysis
testAllocSize @ToBeInvestigated the test uses two entities that share a sequence with the same sequence generator. It assumes that while the sequence is shared on the database, separate ids ranges will be allocated for the different entity classes. EclipseLink, however shares the id ranges. This is OK. Test should be adjusted.

org.eclipse.persistence.testing.tests.wdf.jpa1.inheritance

CallbackTest
method skip annotation bugid analysis
testPreRemove 317597 entity TravelProfile has BINARY id guid but byte array mapped as BLOB
SimpleInheritanceTest
method skip annotation bugid analysis
testInsertDirtyCar @ToBeInvestigated likely atempt to insert subclass of an entity

org.eclipse.persistence.testing.tests.wdf.jpa1.lock

TestLockMethod
method skip annotation bugid analysis
testEntityForInsert @ToBeInvestigated
testLockOldVersion @Bugzilla 309681 RollbackExcetpion with cause OLE is thrown; OLE does not contain causing entity (optional) discussion
testNewEntity @ToBeInvestigated
TestOptimistic
method skip annotation bugid analysis
testIllegalVersionAccessNew @Bugzilla 309681 manual changing the version is not detected discussion
testNode @Bugzilla 309681 strange exception: "Null primary key encountered in unit of work clone "; test looks OK discussion

org.eclipse.persistence.testing.tests.wdf.jpa1.mapping

TestSecondaryTable
method skip annotation bugid analysis
testOptimisticLockWithSecondaryTable @ToBeInvestigated

org.eclipse.persistence.testing.tests.wdf.jpa1.query

Tests in the query package annotated with @ToBeInvestigate are not yet listed

TestAggregates
method skip annotation bugid analysis
testCountHandling @ToBeInvestigated
TestBuiltInFunctionExpressions
method skip annotation bugid analysis
testAbsHandling63 @ToBeInvestigated
testAbsHandling65 @ToBeInvestigated
testAbsHandling68 @ToBeInvestigated
testConcatHandling5 @ToBeInvestigated
testLengthHandling48 @ToBeInvestigated
testLocateHandling56 @ToBeInvestigated
testModHandling85 @ToBeInvestigated
testSqrtHandling73 @ToBeInvestigated
testSqrtHandling75 @ToBeInvestigated
testSubstringHandling13 @ToBeInvestigated
testTrimHandling20 @ToBeInvestigated
testTrimHandling31 @ToBeInvestigated
testUpperHandling40 @ToBeInvestigated
TestConditionalExpressions
method skip annotation bugid analysis
testBetweenHandling0 @ToBeInvestigated
testBetweenHandling12 @ToBeInvestigated
testBetweenHandling13 @ToBeInvestigated
testBetweenHandling5 @ToBeInvestigated
testBetweenHandling6 @ToBeInvestigated
testBetweenHandling7 @ToBeInvestigated
testBooleanComparison0 @ToBeInvestigated test assumes that boolean values can be compared with == and != only
testBooleanComparison1 @ToBeInvestigated test assumes that boolean values can be compared with == and != only
testBooleanComparison2 @ToBeInvestigated test assumes that boolean values can be compared with == and != only
testBooleanComparison3 @ToBeInvestigated test assumes that boolean values can be compared with == and != only
testEnumComparison0 @ToBeInvestigated test assumes that enums can be compared with == and != only
testEnumComparison1 @ToBeInvestigated test assumes that enums can be compared with == and != only
testEnumComparison2 @ToBeInvestigated test assumes that enums can be compared with == and != only
testInHandling0 @ToBeInvestigated
testInHandling2 @ToBeInvestigated
testInHandling4 @ToBeInvestigated
testIsEmptyHandling1 @ToBeInvestigated
testIsEmptyHandling3 @ToBeInvestigated
testIsEmptyHandling6 @ToBeInvestigated
testIsEmptyHandling8 @ToBeInvestigated
testIsNullHandling4 @ToBeInvestigated
testIsNullHandling9 @ToBeInvestigated
testLikeHandling00 @ToBeInvestigated
testLikeHandling01 @ToBeInvestigated
testLikeHandling04 @ToBeInvestigated
testLikeHandling09 @ToBeInvestigated
testLikeHandling10 @ToBeInvestigated
testLikeHandling13 @ToBeInvestigated
testMemberOfHandling0 solved 300488 does not occur any longer
testMemberOfHandling1 @ToBeInvestigated
testMemberOfHandling4 solved 300488 does not occur any longer
testPlatformDependendBetweenHandling1 @ToBeInvestigated
testPlatformDependendBetweenHandling2 @ToBeInvestigated
testPlatformDependendBetweenHandling4 @ToBeInvestigated
testSimpleComparisonHandlingExcludingOpenSQL1 @ToBeInvestigated
testSimpleComparisonHandlingExcludingOpenSQL2 @ToBeInvestigated
testSimpleComparisonHandlingExcludingOpenSQL3 @ToBeInvestigated
testSimpleComparisonHandlingExcludingOpenSQL4 @ToBeInvestigated
testSimpleComparisonHandlingExcludingOpenSQL5 @ToBeInvestigated
testSimpleComparisonHandlingExcludingOpenSQLAndOracle2 @ToBeInvestigated
testSimpleComparisonHandlingExcludingOpenSQLAndOracle3 @ToBeInvestigated
testSimpleTypeComparisonHandling1 @ToBeInvestigated
testSimpleTypeComparisonHandling2 @ToBeInvestigated
testSimpleTypeComparisonHandling3 @ToBeInvestigated
testSimpleTypeComparisonHandling4 @ToBeInvestigated
testSimpleTypeComparisonHandling5 @ToBeInvestigated
testSimpleTypeComparisonHandling6 @ToBeInvestigated
testSimpleTypeComparisonHandling7 @ToBeInvestigated
testSimpleTypeComparisonHandling8 @ToBeInvestigated
TestCount
method skip annotation bugid analysis
testCount0 @ToBeInvestigated
testCount2 @ToBeInvestigated
testCountDistinctCompoundKey solved 297331 does not occur anyl longer
TestEmbeddables
method skip annotation bugid analysis
testEmbeddables0 @ToBeInvestigated
testEmbeddables3 @ToBeInvestigated
TestExtendedQueries
method skip annotation bugid analysis
testInvalidOrderBy @ToBeInvestigated
testInvalidOrderByWithCmr @ToBeInvestigated
testQueryWithInExpressionAndEnums @ToBeInvestigated
TestFromClauses
method skip annotation bugid analysis
testExistsSubquery15 @ToBeInvestigated
testExistsSubquery17 @ToBeInvestigated
testExistsSubquery18 @ToBeInvestigated
testJoinFrom10 @ToBeInvestigated
testJoinFrom9 @ToBeInvestigated
testSimpleFrom5 @ToBeInvestigated
TestGroupByOrderByHaving
method skip annotation bugid analysis
testConstructorGroupBy0 @ToBeInvestigated
testGroupBy8 @ToBeInvestigated
testOrderBy0 @ToBeInvestigated
testOrderBy4 @ToBeInvestigated
testOrderBy5 @ToBeInvestigated
testSubQueryGroupBy5 @ToBeInvestigated
TestJoinFetch
method skip annotation bugid analysis
testDistinctJoinFetchHobbies @ToBeInvestigated
TestQueryAPI
method skip annotation bugid analysis
testTemporalParameterSettingInvalid @ToBeInvestigated
TestRelationships
method skip annotation bugid analysis
testEdmScenario @ToBeInvestigated
TestSelectClauses
method skip annotation bugid analysis
testSimpleSelect4 @ToBeInvestigated
testSimpleSelect5 @ToBeInvestigated
testSubQueries15 @ToBeInvestigated
TestSelectList
method skip annotation bugid analysis
testConstructorArgumentBoxing @ToBeInvestigated
testConstructorAverage @ToBeInvestigated
testNewInner @ToBeInvestigated
TestSelectListTypes
method skip annotation bugid analysis
testMaxPrimitiveByte @ToBeInvestigated
testMaxPrimitiveChar @ToBeInvestigated
testMaxWrapperCharArray2Varchar @ToBeInvestigated
testMaxUtilCalendar @ToBeInvestigated
testMaxWrapperCharacter @ToBeInvestigated
testMaxWrapperByteArray2Binary @ToBeInvestigated
testMaxWrapperCharacter @ToBeInvestigated
testMaxWrapperCharArray2Varchar @ToBeInvestigated
testPrimitiveBoolean @Bugzilla 348874 ReportQuery.buildObjects method filters out Boolean.TRUE values
testWrapperBoolean @Bugzilla 348874 ReportQuery.buildObjects method filters out Boolean.TRUE values
TestSimpleQuery
method skip annotation bugid analysis
testQueryStringNotValid @ToBeInvestigated
testUndefinedNamedQuery @ToBeInvestigated
TestTemporalParameterTypes
method skip annotation bugid analysis
testIncorrectTemporalTypes @ToBeInvestigated
TestUpdateDeleteClause
method skip annotation bugid analysis
testUpdate @ToBeInvestigated

org.eclipse.persistence.testing.tests.wdf.jpa1.relation

TestBidirectionalManyToMany
method skip annotation bugid analysis
testByteItem 317597 entity Item_Byte has BINARY id "id" but byte array mapped as BLOB
testCascadeMerge 317597 entity TravelProfile has BINARY id "guid" but byte array mapped as BLOB
testCopyProjectsToExisting @Bugzilla 300503
testGuidCollection 317597 entity TravelProfile has BINARY id "guid" but byte array mapped as BLOB
TestEmployee_Review
method skip annotation bugid analysis
testNavigateDeserializedEmployeeFails solved 312448 Test serializes an entity with a lazily loadable, pending collection. Test assumes that after deserialization, accessing the pending collection throws a javax.persistence.PersistenceException. EclipseLink throws a propriatory ValidationException.
TestList
method skip annotation bugid analysis
testDelete solved 312244 issue with relationship Course->Material
testMergeChangedRelation solved 312244 issue with relationship Course->Material
testOrderBy solved 312244 issue with relationship Course->Material
testRelationContainsEntities solved 312244 issue with relationship Course->Material
testSimpleCourse solved 312244 issue with relationship Course->Material
testUpdate solved 312244 issue with relationship Course->Material
TestMap
method skip annotation bugid analysis
testEmptyOffice @Bugzilla 300485
testOffice @Bugzilla 300485
TestNode
method skip annotation bugid analysis
testChangeParent @ToBeInvestigated The tests expects that post-update is called on the owning side of a relationship only. EclipseLink, however calls post-update on both sides. To be discussed.
TestPrimaryKeyJoinColumn
method skip annotation bugid analysis
testPersistCourseWithoutMaterial @Bugzilla 312244 issue with relationship Course->Material
TestRelationshipsWithCache
method skip annotation bugid analysis
testBicycleEmployee @Bugzilla 309681 Cached entities not contained after find. Issue with complicated graph containing non-cachable entities? disucssion
testCostCenterEmployee @Bugzilla 309681 Cached entities not contained after find. Issue with complicated graph containing non-cachable entities?
testCubicleEmployee @Bugzilla 309681 Cached entities not contained after find. Issue with complicated graph containing non-cachable entities?
testEmployeeProject @Bugzilla 309681 Cached entities not contained after find. Issue with complicated graph containing non-cachable entities?
testMotorVehicleEmployee @Bugzilla 309681 Cached entities not contained after find. Issue with complicated graph containing non-cachable entities?
testTravelProfileVehicle @ToBeInvestigated
TestUnidirectionalOneToOne
method skip annotation bugid analysis
testMoveTravelProfile 317597 entity TravelProfile has BINARY id "guid" but byte array mapped as BLOB
testUnchanged 317597 entity TravelProfile has BINARY id "guid" but byte array mapped as BLOB

org.eclipse.persistence.testing.tests.wdf.jpa1.simple

BufferReadTest
method skip annotation bugid analysis
testQueryExecuteOnlyOutsideTransactionNew solved cannot be reproduced
TestBasicFieldTypes
method skip annotation bugid analysis
testNullsFAint @Bugzilla 309681 a nullable INT column is mapped to a primitive int attribute. Using JDBC, we write NULL to the column. After a find, the int attribute has the value 0 (zero). An exception would be expected. Considered a bug. discussion
testNullsFAshort @Bugzilla 309681 1) it is atempted to assign primitive short to Integer.valueOf(0) -> IAE; 2) IAE is caught; 3) DescriptorException (no PersistenceException) discussion
testPrimitiveCharArray2Clob solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
testPrimitiveCharArray2Varchar solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
testWrapperByteArray2Binary solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
testWrapperByteArray2Blob solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
testWrapperByteArray2Longvarbinary solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
testWrapperCharArray2Clob solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
testWrapperCharArray2Varchar solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
TestBasicPropertyTypes
method skip annotation bugid analysis
testNullsPAint @Bugzilla 309681 a nullable INT column is mapped to a primitive int attribute. Using JDBC, we write NULL to the column. After a find, the int attribute has the value 0 (zero). An exception would be expected. Considered a bug. discussion
testNullsPAshort @Bugzilla 309681 1) MethodAttributeAccessor.SetAttributeValueinObject attempts to set Integer.valueOf(0) to th eprimitive short attribute -> IllegalArgumentException; 2) IAE ia caught; 3) DescriptorException is thrown (which is no PersistenceException) discussion
testPrimitiveCharArray2Clob solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
testPrimitiveCharArray2Varchar solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
testWrapperByteArray2Binary solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
testWrapperByteArray2Blob solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
testWrapperByteArray2Longvarbinary solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
testWrapperCharArray2Clob solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]
testWrapperCharArray2Varchar solved 285691 @Mutable does not work for arrays of type Byte[], char[], Character[]

Back to the top