JUnit/DBUnit rollback inserts/updates made by method being tested
When performing JUnit/DBUnit testing, when you setup your data by inserting/updating rows during initialization, those insertions and updates would be rolledback automatically during the TearDown step of the Unit Test, right?
My question is that if the inserts and updates are done on the method being tested what are the steps to rollback those inserts and updates?
Can it be done implicitly by JUnit/DbUnit? or do we have to do it manually?
We have an ADF Application Module method that is being J/DB-Unit tested and it calls a stored procedure that does a lot of things to many tables on the database. So it would be nice if the rollback was implicit.