Effective Unit Testing with DbUnit
Subject:   what about JTA?
Date:   2004-03-01 12:54:22
From:   cpfeifer
If you're using JTA and cannot test your code easily outside of a J2EE container, can you somehow use dbUnit with Cactus?
Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • what about JTA?
    2004-03-02 08:01:40  aglover [View]

    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.