[ http://issues.apache.org/jira/browse/JDO-304?page=all ]
Craig Russell updated JDO-304:
------------------------------
Attachment: QueryTest.patch
Please review this patch. After applying the patch, failing queries print the
query and the expected and actual results.
[java] 1)
testNoNavigation(org.apache.jdo.tck.query.result.VariableInResult)junit.framework.AssertionFailedError:
Assertion A14.6.9-3 (VariableInResult) failed:
[java] Wrong query result:
[java] query: SELECT p FROM org.apache.jdo.tck.pc.company.Employee WHERE
projects.contains(p) & p.name == 'orange' VARIABLES Project p
[java] expected: [Project(1, name orange, budget 2500000.99), Project(1,
name orange, budget 2500000.99), Project(1, name orange, budget 2500000.99)]
[java] got: [Project(1, name orange, budget 2500000.99)]
> Query failure should print the query that failed in addition to the expected
> and actual results
> -----------------------------------------------------------------------------------------------
>
> Key: JDO-304
> URL: http://issues.apache.org/jira/browse/JDO-304
> Project: JDO
> Type: Improvement
> Components: tck20
> Versions: JDO 2 beta
> Reporter: Craig Russell
> Priority: Minor
> Fix For: JDO 2 rc1
> Attachments: QueryTest.patch
>
> The failure message doesn't contain the failing query:
> [java] There were 2 failures:
> [java] 1)
> testNoNavigation(org.apache.jdo.tck.query.result.VariableInResult)junit.framework.AssertionFailedError:
> Assertion A14.6.9-3 (VariableInResult) failed:
> [java] Wrong query result:
> [java] expected: [Project(1, name orange, budget 2500000.99), Project(1,
> name orange, budget 2500000.99), Project(1, name orange, budget 2500000.99)]
> [java] got: [Project(1, name orange, budget 2500000.99)]
--
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