Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JUnit/DBUnit rollback inserts/updates made by method being tested

antonyuloOct 7 2008 — edited Oct 7 2008
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2008
Added on Oct 7 2008
1 comment
503 views