Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 60087 invoked from network); 16 Jan 2007 22:41:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2007 22:41:24 -0000 Received: (qmail 27239 invoked by uid 500); 16 Jan 2007 22:41:30 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 27221 invoked by uid 500); 16 Jan 2007 22:41:30 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 27210 invoked by uid 99); 16 Jan 2007 22:41:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 14:41:30 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 14:41:23 -0800 Received: from eos.apache.osuosl.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 3BA3C59F70 for ; Tue, 16 Jan 2007 22:41:03 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: derby-commits@db.apache.org Date: Tue, 16 Jan 2007 22:41:03 -0000 Message-ID: <20070116224103.18908.61046@eos.apache.osuosl.org> Subject: [Db-derby Wiki] Update of "KillDerbyTestHarness" by DanDebrunner X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification. The following page has been changed by DanDebrunner: http://wiki.apache.org/db-derby/KillDerbyTestHarness ------------------------------------------------------------------------------ * Tests/Suites can be added into other project's test suites with no additional knowledge or requirements == Conversion or writing JUnit tests FAQ == + === SQL tests === + Harness based script tests (`.sql` scripts) can be converted in three ways: + * Continue running the test as a script using the !ScriptTestCase class, see ConvertSqlScriptTestsToJunit + * Look at using the utility attached to [http://issues.apache.org/jira/browse/DERBY-2151 DERBY-2151] to convert the old test automatically. + * Re-write the test by hand using standard JDBC calls and the utility methods and decorators available === Decorators === A number of useful decorators and convenience methods that return decorators exist, this section shows which to use for certain situations. Remember that a decorator can wrap a set of test fixtures: