Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This is a Parameterized Test Case that overrides runTest() and provides a meaningful name for each test. The test data is hard coded directly into the suite() method, although it could easily be extracted into a file.
Note
Be careful!— Overriding runTest() does not work if you are using a JUnit-related framework that already overrides this method for its own purpose. For example, you cannot employ this technique with Cactus, because its test case classes override runTest() to determine whether to execute the test entirely on the client or on the server. If your test case class extends something other than junit.framework.TestCase, then we recommend you look at the source for that customized test case class and ensure that this approach is compatible with those customizations.