Re: [jira] Updated: (JDO-166) Implement new JDO 2 query tests cases
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > Re: [jira] Updated: (JDO-166) Implement new JDO 2 query tests cases




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: [jira] Updated: (JDO-166) Implement new JDO 2 query tests cases  
Michael Watzek


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-29-05 12:45 PM

Hi Craig,

> Hi Michael,
>
> Test class DeleteQueryElements has INVALID_QUERIES for which the
> comments are incorrect. They should all start with "The query is
> invalid because...". I suspect that you copied some of these from  other
> query tests, but there are more requirements for delete.
>
> For example, I suggest changing "The query may fail because there is  a
> grouping clause, or because there is a grouping clause w/o result"  to
> "The query is invalid because there is a grouping clause".
Ok.

>
> I'd also suggest making two test cases from the test case"The query  may
> fail because there is a result, or  because there is a result  class".
> These sound like different cases.
I assume, you mean two different test methods, rather than two different
test classes?

Up to now, all JDO2 query test classes implementing negative test cases
execute those within the same method (testNegative()). For example, test
class DeleteQueryElements executes the following test cases within
testNegative():

1) invalid result clause,
2) invalid result class,
3) invalid grouping,
4) invalid ordering,
5) invalid range.

Is your suggestion to split up 1) - 5) into different negative test
methods?

If yes, I propose to make a separate issue out of it because this
affects more classes than just DeleteQueryElements. There are several
JDO2 query test classes executing more than one test case within
testNegative().

Regards,
Michael
>
> I notice in QueryTest that the execute method always starts a
> transaction. Are there any tests that query outside a transaction?
>
> Thanks,
>
> Craig
>
> On Nov 28, 2005, at 5:08 AM, Michael Watzek (JIRA) wrote:
> 
>
> 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!
>
>


--
-------------------------------------------------------------------
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:27 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register