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/04/20 20:15:59 UTC

[Db-derby Wiki] Update of "KillDerbyTestHarness" by KatheyMarsden

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 KatheyMarsden:
http://wiki.apache.org/db-derby/KillDerbyTestHarness

------------------------------------------------------------------------------
  === 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
+  * Look at using the utility org.apache.derbyTesting.functionTests.util.SQLToJUnit attached to convert the old test automatically.  More info is in [http://issues.apache.org/jira/browse/DERBY-2151 DERBY-2151].
+  * Re-write the test by hand using standard JDBC calls and the utility methods and decorators available.  The method org.apache.derbyTesting.junit.Utilities.showResultSet(ResultSet rs) can be used to print resultsets out in two dimensional array format for use by assertFullResultSet.
+ 
  === 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: