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 class: -* simple assertions -* a helper class devoted to introspecting the Criteria class -* creating a Criteria that the Criteria-under-test should match, and comparing 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 comparing them for equality. + * comparing the toString() output of Criteria === Simple Assertions === @@ -28,7 +28,7 @@ === Criteria.equal() === -Just stumbled on this today, haven't tried it yet. Could be the elegant solution, if equal() is written to ignore ordering issues. +Just stumbled on this today, haven't tried it yet. Could be the elegant solution, if equal() is written to ignore ordering issues. Simply create the correct Criteria object, and check if the Criteria object generated by the code under test is equal() to it. === Criteria.toString() === --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
