db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bouschen (JIRA)" <j...@apache.org>
Subject [jira] Closed: (JDO-128) Relationship collections have wrong size()
Date Sat, 22 Apr 2006 20:01:27 GMT
     [ http://issues.apache.org/jira/browse/JDO-128?page=all ]
     
Michael Bouschen closed JDO-128:
--------------------------------

    Fix Version: JDO 2 beta
     Resolution: Fixed

> Relationship collections have wrong size()
> ------------------------------------------
>
>          Key: JDO-128
>          URL: http://issues.apache.org/jira/browse/JDO-128
>      Project: JDO
>         Type: Bug

>   Components: tck20
>  Environment: JPOX
>     Reporter: Craig Russell
>     Assignee: Erik Bengtson
>      Fix For: JDO 2 beta

>
> The 1-m relationships are instantiated correctly except for the size() method. This method
has the wrong information.
> The departments field of Company and employees and fundedEmps relationships of Department
have the wrong return from size().
> RUN CompletenessTest.test          FAILURE
> Description: Completeness test with standard mapping, basic testdata with 1-M relationships.
> Time: 021
> There was 1 failure:
> 1) test(org.apache.jdo.tck.mapping.CompletenessTest)junit.framework.AssertionFailedError:
CompletenessTest failed; see list of failed instances below:
> Expected this  instance:
>     Company(1, name Sun Microsystems, Inc., founded 10/Apr/1952)
> Got persistent instance:
>     Company(1, name Sun Microsystems, Inc., founded 10/Apr/1952)
> Detailed list of differences follows...
> Context: Company<1>.departments[0]-> Department<1>.company-> Company<1>.departments[1]->
Department<2>.employees
> Size mismatch: expected size= 2, original size= 0, current size= 2, counted size= 2
>             expected '[PartTimeEmployee(4, emp4Last, emp4First, born 5/Sep/1973, phone
{}, hired 14/Apr/2001, weeklyhours 0.0, $13000.0), FullTimeEmployee(5, emp5Last, emp5First,
born 4/Jul/1962, phone {}, hired 14/Aug/1998, weeklyhours 0.0, $45000.0)]'
>               actual '[PartTimeEmployee(4, emp4Last, emp4First, born 5/Sep/1973, phone
{}, hired 14/Apr/2001, weeklyhours 0.0, $13000.0),FullTimeEmployee(5, emp5Last, emp5First,
born 4/Jul/1962, phone {}, hired 14/Aug/1998, weeklyhours 0.0, $45000.0)]'
> Context: Company<1>.departments[0]-> Department<1>.company-> Company<1>.departments[1]->
Department<2>.fundedEmps
> Size mismatch: expected size= 3, original size= 0, current size= 3, counted size= 3
>             expected '[PartTimeEmployee(4, emp4Last, emp4First, born 5/Sep/1973, phone
{}, hired 14/Apr/2001, weeklyhours 0.0, $13000.0), FullTimeEmployee(1, emp1Last, emp1First,
born 9/Jun/1970, phone {}, hired 31/Dec/1998, weeklyhours 40.0, $20000.0), FullTimeEmployee(5,
emp5Last, emp5First, born 4/Jul/1962, phone {}, hired 14/Aug/1998, weeklyhours 0.0, $45000.0)]'
>               actual '[PartTimeEmployee(4, emp4Last, emp4First, born 5/Sep/1973, phone
{}, hired 14/Apr/2001, weeklyhours 0.0, $13000.0),FullTimeEmployee(1, emp1Last, emp1First,
born 9/Jun/1970, phone {}, hired 31/Dec/1998, weeklyhours 40.0, $20000.0),FullTimeEmployee(5,
emp5Last, emp5First, born 4/Jul/1962, phone {}, hired 14/Aug/1998, weeklyhours 0.0, $45000.0)]'
> Context: Company<1>.departments[0]-> Department<1>.employees
> Size mismatch: expected size= 3, original size= 0, current size= 3, counted size= 3
>     expected '[FullTimeEmployee(2, emp2Last, emp2First, born 21/Dec/1975, phone {}, hired
30/Jun/2003, weeklyhours 40.0, $10000.0), FullTimeEmployee(1, emp1Last, emp1First, born 9/Jun/1970,
phone {}, hired 31/Dec/1998, weeklyhours 40.0, $20000.0), PartTimeEmployee(3, emp3Last, emp3First,
born 4/Sep/1972, phone {}, hired 14/Aug/2002, weeklyhours 19.0, $15000.0)]'
>       actual '[FullTimeEmployee(2, emp2Last, emp2First, born 21/Dec/1975, phone {}, hired
30/Jun/2003, weeklyhours 40.0, $10000.0),FullTimeEmployee(1, emp1Last, emp1First, born 9/Jun/1970,
phone {}, hired 31/Dec/1998, weeklyhours 40.0, $20000.0),PartTimeEmployee(3, emp3Last, emp3First,
born 4/Sep/1972, phone {}, hired 14/Aug/2002, weeklyhours 19.0, $15000.0)]'
> Context: Company<1>.departments[0]-> Department<1>.fundedEmps
> Size mismatch: expected size= 2, original size= 0, current size= 2, counted size= 2
>     expected '[FullTimeEmployee(2, emp2Last, emp2First, born 21/Dec/1975, phone {}, hired
30/Jun/2003, weeklyhours 40.0, $10000.0), PartTimeEmployee(3, emp3Last, emp3First, born 4/Sep/1972,
phone {}, hired 14/Aug/2002, weeklyhours 19.0, $15000.0)]'
>       actual '[FullTimeEmployee(2, emp2Last, emp2First, born 21/Dec/1975, phone {}, hired
30/Jun/2003, weeklyhours 40.0, $10000.0),PartTimeEmployee(3, emp3Last, emp3First, born 4/Sep/1972,
phone {}, hired 14/Aug/2002, weeklyhours 19.0, $15000.0)]'

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message