using variables in DBUnit load file -


is there way can use variables in load file in dbunit can populate dynamic data @ runtime

e.g.

<employee id="var" , name="emp1" /> 

and want var can supply.

sorry if basic questions have started looking @ dbunit on someone's recommendation

i found solution couple of days before, use replacementdataset. here example(i use replace fields null)

public static idataset flatxml(file file)         throws malformedurlexception, datasetexception {     replacementdataset dataset = new replacementdataset(             new flatxmldatasetbuilder().build(file));     dataset.addreplacementobject("[null]", null);     return dataset; }  <dataset>     <t_f2g_pending_order          tracking_id="2"         delivery_time="2013-04-01 13:44:00"         delivery_address_street1="north che zhan road"         delivery_address_street2="kui zhao road"          restaurant_id="[null]" /> </dataset> 

hope helps.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -