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 "DerbyJUnitTesting" by DanDebrunner
Date Thu, 20 Jul 2006 16:16:37 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 DanDebrunner:
http://wiki.apache.org/db-derby/DerbyJUnitTesting

------------------------------------------------------------------------------
  == Base JUnit test classes ==
  After some discussion on derby-dev, a set of base classes to be used when writing JUnit
tests were created.
  These are:
-  * `BaseTestCase`
-  * `BaseJDBCTestCase`
-  * `TestConfiguration` 
-  * `JDBCClient`
+  * `org.apache.derbyTesting.functionTests.util.BaseTestCase`
+  * `org.apache.derbyTesting.functionTests.util.BaseJDBCTestCase`
+  * `org.apache.derbyTesting.functionTests.util.TestConfiguration` 
+  * `org.apache.derbyTesting.functionTests.util.JDBCClient`
+ 
+ Note that the class `DerbyJUnitTest` in the same package is [http://www.mail-archive.com/derby-dev@db.apache.org/msg23272.html
deprecated].
  
  To write a JUnit test that uses JDBC, make your test class extend `BaseJDBCTestCase`. This
class is subclass of [http://www.junit.org/junit/javadoc/3.8.1/junit/framework/TestCase.html
TestCase] in JUnit framework and you can add test methods, write your `setUp` and `tearDown`
methods and finally the `suite` method that returns a suite of tests to run (typically all
tests in the test class). `BaseJDBCTestCase` provides a set of often used functionality, for
instance the method `getConnection` to obtain a connection to the default database. If you
are missing something, ask on derby-dev or create a sub-task/link a Jira issue to DERBY-1122.
  

Mime
View raw message