Reputation: 15876
I have a database process written in PL/SQL that i would like to test using DBUNIT. The pl/sql program processes data from one table and generates new data into a new table. In some cases it also updates fields on the original table.
I am a bit confused in how i can use dbunit to test this. Reading up on it, it looks like i have to specify the data in an xml file but i cant figure out how to structure the xml files. Thinking about it i think i would need the following data files
The workflow is something like this
I am slightly confused as to how dbunit can help with this. For example
Please also do let me know if you can suggest a better alternative or approach to do this.
Thanks
Upvotes: 0
Views: 1038
Reputation: 116306
The dataset(s) in the XML file(s) can serve (at least) two purposes:
This introduction seems to explain the how-tos clearly.
Upvotes: 3