junit - Support for Sequence in DBUnit -
we in process of analyzing dbunit data driven unit testing. able export oracle db tables flat xml dataset using code below , use generated dataset input our junit testing.
// partial database export querydataset partialdataset = new querydataset(connection); partialdataset.addtable("foo", "select * table col='value'"); partialdataset.addtable("bar"); flatxmldataset.write(partialdataset, new fileoutputstream("partial.xml"));
org.dbunit.database.querydataset provides option add tables not sequences. need export sequence same way dbunit dataset. there way achieve ?
we looking tools unit testing (data driven) repository layer using open source tools. there other open source tool similar dbunit ?
Comments
Post a Comment