Issue Details (XML | Word | Printable)

Key: JDO-304
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Craig Russell
Reporter: Craig Russell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Query failure should print the query that failed in addition to the expected and actual results

Created: 12/Feb/06 06:04 AM   Updated: 22/Feb/06 02:41 AM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 beta
Fix Version/s: JDO 2 rc1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works Query.patch 2006-02-13 07:55 AM Craig Russell 24 kB
Text File Licensed for inclusion in ASF works QueryTest.patch 2006-02-12 06:06 AM Craig Russell 4 kB

Resolution Date: 22/Feb/06 02:41 AM


 Description  « Hide
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)]


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig Russell made changes - 12/Feb/06 06:06 AM
Field Original Value New Value
Attachment QueryTest.patch [ 12322876 ]
Craig Russell made changes - 13/Feb/06 07:55 AM
Attachment Query.patch [ 12322901 ]
Craig Russell made changes - 22/Feb/06 02:41 AM
Assignee Craig Russell [ clr ]
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]