From torque-dev-return-4175-apmail-db-torque-dev-archive=db.apache.org@db.apache.org Mon May 17 16:24:49 2004 Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 52566 invoked from network); 17 May 2004 16:24:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 May 2004 16:24:49 -0000 Received: (qmail 42421 invoked by uid 500); 17 May 2004 16:24:52 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 42256 invoked by uid 500); 17 May 2004 16:24:50 -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 42000 invoked by uid 98); 17 May 2004 16:24:48 -0000 Received: from torque-dev@db.apache.org by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(209.237.227.194):. Processed in 0.04782 secs); 17 May 2004 16:24:48 -0000 X-Qmail-Scanner-Mail-From: torque-dev@db.apache.org via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(209.237.227.194):. Processed in 0.04782 secs) Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by hermes.apache.org with SMTP; 17 May 2004 16:24:48 -0000 Received: (qmail 52136 invoked from network); 17 May 2004 16:24:29 -0000 Received: from localhost.hyperreal.org (HELO minotaur.apache.org) (127.0.0.1) by localhost.hyperreal.org with SMTP; 17 May 2004 16:24:29 -0000 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: torque-dev@db.apache.org To: torque-dev@db.apache.org Subject: =?iso-8859-1?q?=5BDB_Torque_Wiki=5D_Updated=3A__UnitTestingWithTorque?= Date: Mon, 17 May 2004 16:24:29 -0000 Message-ID: <20040517162429.52112.42224@minotaur.apache.org> X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N 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 Date: 2004-05-17T09:24:29 Editor: 67.166.116.227 <> Wiki: DB Torque Wiki Page: UnitTestingWithTorque URL: http://wiki.apache.org/db-torque/UnitTestingWithTorque cosmetics... Change Log: ---------------------------------------------------------------------------= --- @@ -13,10 +13,10 @@ = Here are a variety of methods for testing the contents of the Criteria cla= ss: = -* simple assertions -* a helper class devoted to introspecting the Criteria class -* creating a Criteria that the Criteria-under-test should match, and compa= ring them for equality. -* comparing the toString() output of Criteria + * simple assertions + * a helper class devoted to introspecting the Criteria class + * creating a Criteria that the Criteria-under-test should match, and comp= aring them for equality. + * comparing the toString() output of Criteria = =3D=3D=3D Simple Assertions =3D=3D=3D = @@ -28,7 +28,7 @@ = =3D=3D=3D Criteria.equal() =3D=3D=3D = -Just stumbled on this today, haven't tried it yet. Could be the elegant s= olution, if equal() is written to ignore ordering issues. +Just stumbled on this today, haven't tried it yet. Could be the elegant s= olution, if equal() is written to ignore ordering issues. Simply create th= e correct Criteria object, and check if the Criteria object generated by th= e code under test is equal() to it. = =3D=3D=3D Criteria.toString() =3D=3D=3D =20 --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org