I use DbUnit to load data into a DB for some integration tests. The data is specified in a flat XML file like so:
However in the case of one table, the rows I wish to insert are based on rows already inserted into other tables. The most convenient way for me to achieve this would be by running an insert-select statement, rather than specifying the rows via XML as above. Does DbUnit support loading data via a mixture of insert-select statements and XML in this fashion?
以上就是DBUnit, run insert-select statement的详细内容，更多请关注web前端其它相关文章！