You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by Andy Jefferson <an...@jpox.org> on 2007/09/11 10:31:30 UTC

TCK2 : src/java/org/apache/jdo/tck/mapping/RelationshipManyToManyNoRelationships.java

Hi,

this test seems to have an error. Line 154 has
emp1 = (Employee)pm.getObjectById(emp1Oid);

yet it should be
emp4 = (Employee)pm.getObjectById(emp4Oid);

since "emp4" is the Employee that is being compared just after ("emp1" is 
never used).


-- 
Andy  (Java Persistent Objects - http://www.jpox.org)

Re: TCK2 : src/java/org/apache/jdo/tck/mapping/RelationshipManyToManyNoRelationships.java

Posted by Michelle Caisse <Mi...@Sun.COM>.
Thanks, fixed the problem. I removed all the references to emp4 and 
proj2. Since no relationships are created by the initial test data, the 
tests should simply use the emp1 and proj1 instances that are set up in 
localSetUp(). The test now passes, as do the other positive tests.

-- Michelle

Andy Jefferson wrote:
> Hi,
>
> this test seems to have an error. Line 154 has
> emp1 = (Employee)pm.getObjectById(emp1Oid);
>
> yet it should be
> emp4 = (Employee)pm.getObjectById(emp4Oid);
>
> since "emp4" is the Employee that is being compared just after ("emp1" is 
> never used).
>
>
>