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 TomohitoNakayama
Date Thu, 11 May 2006 15:02:12 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 TomohitoNakayama:
http://wiki.apache.org/db-derby/DerbyJUnitTesting

------------------------------------------------------------------------------
   * `TestConfiguration` 
   * `JDBCClient`
  
- To write a JUnit test that uses JDBC, make your test class extend `BaseJDBCTestCase`. Then
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.
+ 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.
  
  `BaseTestCase` is to be used for JUnit tests not using the JDBC API.
  

Mime
View raw message