db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "KillDerbyTestHarness" by KatheyMarsden
Date Fri, 20 Apr 2007 18:15:59 GMT
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:

Mime
View raw message