| Craig L Russell 2005-11-30, 5:45 pm |
| Hi Michael,
On Nov 29, 2005, at 2:02 AM, Michael Watzek wrote:
> Hi Craig,
>
> Ok.
>
> I assume, you mean two different test methods, rather than two
> different test classes?
Different cases == different situations, not 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?
No, it's simply to make two queries instead of one. There's nothing
wrong with your strategy.
If I read the negative queries correctly, you have a delete query
with both result class and result.
So, my suggestion is to split out the query into two so that one
invalid query has a result class and another invalid query has a result.
Regards,
Craig
>
> 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
>
>
> --
> -------------------------------------------------------------------
> 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/
> -------------------------------------------------------------------
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!
|