db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michelle Caisse (JIRA)" <j...@apache.org>
Subject [jira] Created: (JDO-505) Completeness test with many-many relationships fails with annotations
Date Mon, 02 Jul 2007 23:25:06 GMT
Completeness test with many-many relationships fails with annotations
---------------------------------------------------------------------

                 Key: JDO-505
                 URL: https://issues.apache.org/jira/browse/JDO-505
             Project: JDO
          Issue Type: Bug
          Components: tck2
    Affects Versions: JDO 2 maintenance release 1
            Reporter: Michelle Caisse
            Assignee: Andy Jefferson


maven -Djdo.tck.cfglist=companyFCAnnotatedM-MRelationships.conf runtck.jdori

    [java] 1) test(org.apache.jdo.tck.mapping.CompletenessTest)junit.framework.AssertionFailedError:
CompletenessTest failed; see list of failures below:
    [java] Expected this  instance:
    [java]     FullTimeEmployee(1, emp1Last, emp1First, born 9/Jun/1970, phone {}, hired 31/Dec/1998,
weeklyhours 40.0, $20000.0)
    [java] Got persistent instance:
    [java]     FCFullTimeEmployee(1, emp1Last, emp1First, born 9/Jun/1970, phone {}, hired
31/Dec/1998, weeklyhours 40.0, $20000.0)
    [java] Detailed list of differences follows...
    [java] Context: Employee<1>.reviewedProjects
    [java] Size mismatch: expected size= 1, original size= 0, current size= 0, counted size=
0
    [java] expected '[Project(3, name green, budget 2000.99)]'
    [java]   actual '[]'
    [java] Context: Employee<1>.projects
    [java] Size mismatch: expected size= 1, original size= 0, current size= 0, counted size=
0
    [java] expected '[Project(1, name orange, budget 2500000.99)]'
    [java]   actual '[]'
    [java]
    [java] Expected this  instance:
    [java]     FullTimeEmployee(2, emp2Last, emp2First, born 21/Dec/1975, phone{}, hired 30/Jun/2003,
weeklyhours 40.0, $10000.0)
    [java] Got persistent instance:
    [java]     FCFullTimeEmployee(2, emp2Last, emp2First, born 21/Dec/1975, phone {}, hired
30/Jun/2003, weeklyhours 40.0, $10000.0)
    [java] Detailed list of differences follows...
    [java] Context: Employee<2>.projects
    [java] Size mismatch: expected size= 2, original size= 0, current size= 0, counted size=
0
    [java] expected '[Project(1, name orange, budget 2500000.99), Project(2, name blue, budget
50000.00)]'
    [java]   actual '[]'
    [java]
    [java] Expected this  instance:
    [java]     PartTimeEmployee(3, emp3Last, emp3First, born 4/Sep/1972, phone {}, hired 14/Aug/2002,
weeklyhours 19.0, $15.0)
    [java] Got persistent instance:
    [java]     FCPartTimeEmployee(3, emp3Last, emp3First, born 4/Sep/1972, phone {}, hired
14/Aug/2002, weeklyhours 19.0, $15.0)
    [java] Detailed list of differences follows...
    [java] Context: Employee<3>.projects
    [java] Size mismatch: expected size= 2, original size= 0, current size= 0, counted size=
0
    [java] expected '[Project(1, name orange, budget 2500000.99), Project(2, name blue, budget
50000.00)]'
    [java]   actual '[]'
    [java]
    [java] Expected this  instance:
    [java]     PartTimeEmployee(4, emp4Last, emp4First, born 5/Sep/1973, phone {}, hired 14/Apr/2001,
weeklyhours 0.0, $13.0)
    [java] Got persistent instance:
    [java]     FCPartTimeEmployee(4, emp4Last, emp4First, born 5/Sep/1973, phone {}, hired
14/Apr/2001, weeklyhours 0.0, $13.0)
    [java] Detailed list of differences follows...
    [java] Context: Employee<4>.reviewedProjects
    [java] Size mismatch: expected size= 1, original size= 0, current size= 0, counted size=
0
    [java] expected '[Project(2, name blue, budget 50000.00)]'
    [java]   actual '[]'
    [java] Context: Employee<4>.projects
    [java] Size mismatch: expected size= 1, original size= 0, current size= 0, counted size=
0
    [java] expected '[Project(3, name green, budget 2000.99)]'
    [java]   actual '[]'
    [java]
    [java] Expected this  instance:
    [java]     FullTimeEmployee(5, emp5Last, emp5First, born 4/Jul/1962, phone {}, hired 14/Aug/1998,
weeklyhours 0.0, $45000.0)
    [java] Got persistent instance:
    [java]     FCFullTimeEmployee(5, emp5Last, emp5First, born 4/Jul/1962, phone {}, hired
14/Aug/1998, weeklyhours 0.0, $45000.0)
    [java] Detailed list of differences follows...
    [java] Context: Employee<5>.reviewedProjects
    [java] Size mismatch: expected size= 1, original size= 0, current size= 0, counted size=
0
    [java] expected '[Project(2, name blue, budget 50000.00)]'
    [java]   actual '[]'
    [java] Context: Employee<5>.projects
    [java] Size mismatch: expected size= 1, original size= 0, current size= 0, counted size=
0
    [java] expected '[Project(3, name green, budget 2000.99)]'
    [java]   actual '[]'
    [java]
    [java]      at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:639)
    [java]      at org.apache.jdo.tck.mapping.CompletenessTest.test(CompletenessTest.java:124)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:254)
    [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
    [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
    [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message