You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by Apache Wiki <wi...@apache.org> on 2007/07/05 19:14:04 UTC

[Db-derby Wiki] Update of "ConvertOldTestToJunitTips" by MyrnavanLunteren

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.