db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Eade <se...@backstagetech.com.au>
Subject Re: unit testing and Criteria
Date Mon, 17 May 2004 23:36:00 GMT
Gary Shea wrote:

>I've started a page on the wiki on unit testing with Torque, hopefully
>folks can learn from my mistakes.
>
Excellent!

>
>Currently I'm wondering about the Criteria.equals() method.  Ideally,
>this would be the ultimate unit-testing tool.  Create a known-correct
>Criteria, use equals() to compare it to the result from the code under
>test.  It doesn't seem to work that way at the moment, but it doesn't
>have to, the semantics of equals() are loose enough so that the author
>can write it however he or she wants to.
>
>Should two Criteria objects which are identical except for the order in
>which constraints are added and whether they are entered as primitives
>or objects be considered equal?
>
Yes.

>
>If so, I'll try and track down the problem and submit a patch.
>
This would be most welcome.

Scott
--

Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message