Unitils @DataSet annotation -


i have theoretical question time. unitils @dataset annotation processed? every annotation must have prosessor class, see http://www.javacodegeeks.com/2012/08/java-annotations-explored-explained.html

does happen in org.unitils.unitilsjunit4 library?

i make own implementation anotation, no code ready yet.

depends on part of processing looking for. if mean actual dataset processed, check out dbunitmodule class. api:

loading of dbunit data sets can done annotating class or method dataset annotation. name of data set files can specified explicitly argument of annotation. if no file name specified, looks file in same directory test class named: 'classname without packagename'.xml.

if referring code looks things annotated @dataset have helper class called annotationutils (api) has bunch of methods accessing annotated items. used dbunitmodule mentioned above find whatever data set needed given test.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -