Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-304

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • JDO 2 beta
    • JDO 2 rc1
    • tck
    • None

    Description

      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)]

      Attachments

        1. QueryTest.patch
          4 kB
          Craig L Russell
        2. Query.patch
          24 kB
          Craig L Russell

        Activity

          People

            clr Craig L Russell
            clr Craig L Russell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: