ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Effective Unit Testing with DbUnit
Subject:   what about JTA?
Date:   2004-03-02 08:01:40
From:   aglover
Response to: what about JTA?

You could use DbUnit's Ant functionality to abstract the seeding out of your actual cactus test cases. That way, you could write your tests with cactus and then run them with an Ant target, which has preconditions (written with DbUnit's Ant tags) to put the DB into a known state.