You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Craig Russell (JIRA)" <ji...@apache.org> on 2006/02/11 22:04:28 UTC

[jira] Created: (JDO-304) Query failure should print the query that failed in addition to the expected and actual results

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


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


Re: [jira] Updated: (JDO-304) Query failure should print the query that failed in addition to the expected and actual results

Posted by Karan Malhi <ka...@gmail.com>.
Hi Craig,

The patch works fine. Although I am still getting 3 failures for
query.confwith datastoreidentity, but there are no compile errors.

On 2/13/06, Craig L Russell <Cr...@sun.com> wrote:
>
> Hi,
>
> Rather than delay the checkin of the updated test cases that we need
> to verify the refined definition of how to treat projections of
> variables, I separated out the updates to QueryTest and the new test
> cases from the cleanup item to include the query filter with the
> failure message.
>
> Sorry I didn't make this clear in the comments on the patches.
>
> If you can review the patch with the cleanup, I'll check it all in.
>
> Craig
>
> On Feb 13, 2006, at 6:01 AM, Karan Malhi wrote:
>
> > Michael:
> >
> > I had applied both the patches which craig had attached to the
> > issue. I did
> > not update my local copy. Probably that wouldve caused it.
> >
> > On 2/13/06, Michael Bouschen <mb...@spree.de> wrote:
> >>
> >> Hi Karan,
> >>
> >> I tried the patch and it works on my side. I'm confused that you are
> >> getting a NoSuchMethodErrors and not a compile error. Did you update
> >> your workspace (svn update)? Craig already checked in part one of the
> >> fix for JDO-304 which adds an overloaded version of the QueryTest
> >> methods.
> >>
> >> Regards Michael
> >>
> >>> I still get 14 NoSuchMethodErrors
> >>>
> >>> On 2/12/06, Craig Russell (JIRA) <ji...@apache.org> wrote:
> >>>
> >>>>     [ http://issues.apache.org/jira/browse/JDO-304?page=all ]
> >>>>
> >>>> Craig Russell updated JDO-304:
> >>>> ------------------------------
> >>>>
> >>>>    Attachment: Query.patch
> >>>>
> >>>> 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.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>> 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: Query.patch, 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
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Karan Malhi
> >>>
> >>
> >>
> >> --
> >> Michael Bouschen                Tech@Spree Engineering GmbH
> >> mailto:mbo.tech@spree.de        http://www.tech.spree.de/
> >> Tel.:++49/30/235 520-33         Buelowstr. 66
> >> Fax.:++49/30/2175 2012          D-10783 Berlin
> >>
> >
> >
> >
> > --
> > Karan Malhi
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>
>
>
>


--
Karan Malhi

Re: [jira] Updated: (JDO-304) Query failure should print the query that failed in addition to the expected and actual results

Posted by Craig L Russell <Cr...@Sun.COM>.
Hi,

Rather than delay the checkin of the updated test cases that we need  
to verify the refined definition of how to treat projections of  
variables, I separated out the updates to QueryTest and the new test  
cases from the cleanup item to include the query filter with the  
failure message.

Sorry I didn't make this clear in the comments on the patches.

If you can review the patch with the cleanup, I'll check it all in.

Craig

On Feb 13, 2006, at 6:01 AM, Karan Malhi wrote:

> Michael:
>
> I had applied both the patches which craig had attached to the  
> issue. I did
> not update my local copy. Probably that wouldve caused it.
>
> On 2/13/06, Michael Bouschen <mb...@spree.de> wrote:
>>
>> Hi Karan,
>>
>> I tried the patch and it works on my side. I'm confused that you are
>> getting a NoSuchMethodErrors and not a compile error. Did you update
>> your workspace (svn update)? Craig already checked in part one of the
>> fix for JDO-304 which adds an overloaded version of the QueryTest  
>> methods.
>>
>> Regards Michael
>>
>>> I still get 14 NoSuchMethodErrors
>>>
>>> On 2/12/06, Craig Russell (JIRA) <ji...@apache.org> wrote:
>>>
>>>>     [ http://issues.apache.org/jira/browse/JDO-304?page=all ]
>>>>
>>>> Craig Russell updated JDO-304:
>>>> ------------------------------
>>>>
>>>>    Attachment: Query.patch
>>>>
>>>> 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.
>>>>
>>>>
>>>>
>>>>
>>>>> 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: Query.patch, 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
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Karan Malhi
>>>
>>
>>
>> --
>> Michael Bouschen                Tech@Spree Engineering GmbH
>> mailto:mbo.tech@spree.de        http://www.tech.spree.de/
>> Tel.:++49/30/235 520-33         Buelowstr. 66
>> Fax.:++49/30/2175 2012          D-10783 Berlin
>>
>
>
>
> --
> Karan Malhi

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Re: [jira] Updated: (JDO-304) Query failure should print the query that failed in addition to the expected and actual results

Posted by Karan Malhi <ka...@gmail.com>.
Michael:

I had applied both the patches which craig had attached to the issue. I did
not update my local copy. Probably that wouldve caused it.

On 2/13/06, Michael Bouschen <mb...@spree.de> wrote:
>
> Hi Karan,
>
> I tried the patch and it works on my side. I'm confused that you are
> getting a NoSuchMethodErrors and not a compile error. Did you update
> your workspace (svn update)? Craig already checked in part one of the
> fix for JDO-304 which adds an overloaded version of the QueryTest methods.
>
> Regards Michael
>
> > I still get 14 NoSuchMethodErrors
> >
> > On 2/12/06, Craig Russell (JIRA) <ji...@apache.org> wrote:
> >
> >>     [ http://issues.apache.org/jira/browse/JDO-304?page=all ]
> >>
> >>Craig Russell updated JDO-304:
> >>------------------------------
> >>
> >>    Attachment: Query.patch
> >>
> >>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.
> >>
> >>
> >>
> >>
> >>>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: Query.patch, 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
> >>
> >>
> >
> >
> >
> > --
> > Karan Malhi
> >
>
>
> --
> Michael Bouschen                Tech@Spree Engineering GmbH
> mailto:mbo.tech@spree.de        http://www.tech.spree.de/
> Tel.:++49/30/235 520-33         Buelowstr. 66
> Fax.:++49/30/2175 2012          D-10783 Berlin
>



--
Karan Malhi

Re: [jira] Updated: (JDO-304) Query failure should print the query that failed in addition to the expected and actual results

Posted by Michael Bouschen <mb...@spree.de>.
Hi Karan,

I tried the patch and it works on my side. I'm confused that you are 
getting a NoSuchMethodErrors and not a compile error. Did you update 
your workspace (svn update)? Craig already checked in part one of the 
fix for JDO-304 which adds an overloaded version of the QueryTest methods.

Regards Michael

> I still get 14 NoSuchMethodErrors
> 
> On 2/12/06, Craig Russell (JIRA) <ji...@apache.org> wrote:
> 
>>     [ http://issues.apache.org/jira/browse/JDO-304?page=all ]
>>
>>Craig Russell updated JDO-304:
>>------------------------------
>>
>>    Attachment: Query.patch
>>
>>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.
>>
>>
>>
>>
>>>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: Query.patch, 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
>>
>>
> 
> 
> 
> --
> Karan Malhi
> 


-- 
Michael Bouschen		Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de	http://www.tech.spree.de/
Tel.:++49/30/235 520-33		Buelowstr. 66			
Fax.:++49/30/2175 2012		D-10783 Berlin			

Re: [jira] Updated: (JDO-304) Query failure should print the query that failed in addition to the expected and actual results

Posted by Karan Malhi <ka...@gmail.com>.
I still get 14 NoSuchMethodErrors

On 2/12/06, Craig Russell (JIRA) <ji...@apache.org> wrote:
>
>      [ http://issues.apache.org/jira/browse/JDO-304?page=all ]
>
> Craig Russell updated JDO-304:
> ------------------------------
>
>     Attachment: Query.patch
>
> 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.
>
>
>
> > 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: Query.patch, 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
>
>


--
Karan Malhi

[jira] Updated: (JDO-304) Query failure should print the query that failed in addition to the expected and actual results

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Updated: (JDO-304) Query failure should print the query that failed in addition to the expected and actual results

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-304?page=all ]

Craig Russell updated JDO-304:
------------------------------

    Attachment: Query.patch

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.



> 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: Query.patch, 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


[jira] Resolved: (JDO-304) Query failure should print the query that failed in addition to the expected and actual results

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-304?page=all ]
     
Craig Russell resolved JDO-304:
-------------------------------

    Resolution: Fixed
     Assign To: Craig Russell

svn commit -m "JDO-304 updated query checking to include query filter"
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.


> 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
>     Assignee: Craig Russell
>     Priority: Minor
>      Fix For: JDO 2 rc1
>  Attachments: Query.patch, 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


[jira] Commented: (JDO-304) Query failure should print the query that failed in addition to the expected and actual results

Posted by "karan singh malhi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-304?page=comments#action_12366040 ] 

karan singh malhi commented on JDO-304:
---------------------------------------

I think if just  a couple of calls are being made to these methods then we should simply make changes in the the callers

> 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


[jira] Commented: (JDO-304) Query failure should print the query that failed in addition to the expected and actual results

Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-304?page=comments#action_12366035 ] 

Michael Bouschen commented on JDO-304:
--------------------------------------

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?

> 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