JDO
  1. JDO
  2. JDO-304

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: JDO 2 beta
    • Fix Version/s: JDO 2 rc1
    • Component/s: tck
    • Labels:
      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)]

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

        Activity

          People

          • Assignee:
            Craig L Russell
            Reporter:
            Craig L Russell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development