[
https://issues.apache.org/jira/browse/JDO-525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Jefferson resolved JDO-525.
--------------------------------
Resolution: Fixed
Fix Version/s: JDO 2 maintenance release 1
Fixed in CVS HEAD.
> Department.getEmployees().contains() returns wrong answer
> ---------------------------------------------------------
>
> Key: JDO-525
> URL: https://issues.apache.org/jira/browse/JDO-525
> Project: JDO
> Issue Type: Bug
> Components: tck2
> Affects Versions: JDO 2 maintenance release 1
> Reporter: Michelle Caisse
> Assignee: Andy Jefferson
> Fix For: JDO 2 maintenance release 1
>
>
> A number of tests in the new configuration relationshipAllRelationships.conf
> give the following error:
> testSetToExistingFromMappedSide(org.apache.jdo.tck.mapping.Relationship1ToManyAllRelationships)junit.framework.AssertionFailedError:
> Assertion A15-3.1 (Relationship1ToManyAllRelationships) failed: : Test
> aborted, precondition is false; expected dept.getEmployees() to contain emp1
> at
> org.apache.jdo.tck.mapping.Relationship1ToManyAllRelationships.localSetUp(Relationship1ToManyAllRelationships.java:87)
> dept1.getEmployees().contains(emp1) returns false, even though it is actually
> true. Print statements showed that isEmpty() and size() return the correct
> answer. contains() returned the correct answer after an invocation of
> dept2.getEmployees().
> To reproduce, do:
> maven -Djdo.tck.cfglist=relationshipAllRelationships.conf runtck.jdori
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.