|
I like the idea of including the JDOQL query string into the error message. The patch QueryTest.patch changes the signature of methods checkQueryResultWithOrder checkQueryResultWithoutOrder defined in the query test superclass QueryTest. These methods are protected and a couple of test classes directly call these methods. These classes fail to compile after applying the patch (I got 56 compile errors). Either we change all the callers or we restore the methods with the old signature such that we have two overloaded versions of the methods. What do you think?
I think if just a couple of calls are being made to these methods then we should simply make changes in the the callers
Please review this patch.
There were 19 test cases affected by the change. Both versions of the check methods are available. The version without the filter should only be used if the filter is null. This allows us to avoid updating the other test cases. svn commit -m "
Sending query/api/CompileQuery.java Sending query/api/DeclareImports.java Sending query/api/DeclareParameters.java Sending query/api/ExecuteQuery.java Sending query/api/ExecuteQueryWithArray.java Sending query/api/ExecuteQueryWithMap.java Sending query/api/NewQueryFromRestoredSerializedQuery.java Sending query/api/NewQueryWithCandidateClassAndFilter.java Sending query/api/NewQueryWithCandidateClassCollectionFilter.java Sending query/api/NewQueryWithExtentAndFilter.java Sending query/api/SetFilter.java Sending query/jdoql/MultipleActiveQueryInstanceInSamePersistenceManager.java Sending query/jdoql/MultipleIdenticalImports.java Sending query/jdoql/OrderingSpecification.java Sending query/jdoql/ParenthesesMarkOperatorPrecedence.java Sending query/jdoql/QueryResultPassedToAnotherQuery.java Sending query/jdoql/WhiteSpaceIsACharacterAndIgnored.java Sending query/jdoql/keywords/UseOfThisToAcessHiddenField.java Sending query/jdoql/parameters/ParameterDeclaredWithSameNameAsFieldOfCandidateClass.java Transmitting file data ................... Committed revision 379541. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[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)]