Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 7724 invoked from network); 5 Jul 2007 17:14:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jul 2007 17:14:34 -0000 Received: (qmail 30339 invoked by uid 500); 5 Jul 2007 17:14:28 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 30267 invoked by uid 500); 5 Jul 2007 17:14:28 -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 30245 invoked by uid 99); 5 Jul 2007 17:14:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 10:14:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Thu, 05 Jul 2007 10:14:24 -0700 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 7E29059A07 for ; Thu, 5 Jul 2007 17:14:04 +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: Thu, 05 Jul 2007 17:14:04 -0000 Message-ID: <20070705171404.14211.59995@eos.apache.org> Subject: [Db-derby Wiki] Update of "ConvertOldTestToJunitTips" by MyrnavanLunteren 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 MyrnavanLunteren: http://wiki.apache.org/db-derby/ConvertOldTestToJunitTips ------------------------------------------------------------------------------ * Not using the utility methods to get a connection. Normally to get a connection to the default database, you should use [http://db.apache.org/derby/javadoc/testing/org/apache/derbyTesting/junit/BaseJDBCTestCase.html#getConnection() getConnection()] This is a single connection that is reused so if you call getConnection twice, you will get the same connection. If you want a secondary connection, use [http://db.apache.org/derby/javadoc/testing/org/apache/derbyTesting/junit/BaseJDBCTestCase.html#openDefaultConnection() openDefaultConnection] * Not removing the old test files. - You should remove the old test files, canons and remove the old test from its suite. ant clobbber before you build, to make sure their are no residual dependencies on the old test files. + You should remove the old test files, canons and remove the old test from its suite. This includes references in any junit *HarnessJavaTest classes. ant clobbber before you build, to make sure their are no residual dependencies on the old test files.