From torque-dev-return-4180-apmail-db-torque-dev-archive=db.apache.org@db.apache.org Mon May 17 23:36:16 2004 Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 93340 invoked from network); 17 May 2004 23:36:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 May 2004 23:36:16 -0000 Received: (qmail 23807 invoked by uid 500); 17 May 2004 23:36:45 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 23793 invoked by uid 500); 17 May 2004 23:36:45 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 23772 invoked by uid 98); 17 May 2004 23:36:45 -0000 Received: from seade@backstagetech.com.au by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(202.4.235.137):. Processed in 0.130304 secs); 17 May 2004 23:36:45 -0000 X-Qmail-Scanner-Mail-From: seade@backstagetech.com.au via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(202.4.235.137):. Processed in 0.130304 secs) Received: from unknown (HELO barge.anchor.net.au) (202.4.235.137) by hermes.apache.org with SMTP; 17 May 2004 23:36:44 -0000 Received: from backstagetech.com.au (203-217-17-173.perm.iinet.net.au [203.217.17.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by barge.anchor.net.au (Postfix) with ESMTP id D3E4810093 for ; Tue, 18 May 2004 09:36:06 +1000 (EST) Message-ID: <40A94C60.7080802@backstagetech.com.au> Date: Tue, 18 May 2004 09:36:00 +1000 From: Scott Eade User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Torque Developers List Subject: Re: unit testing and Criteria References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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