Thursday, February 17, 2011

DataSet annotation in Unitils

a cool feature is to initialize the DB before each test.

Since most data are common to all tests, it pays to factor them out to a shared DataSet (xml file)

Unitils supports this feature and this is the syntax:

@DataSet(value={"one.xml","two.xml"})

http://www.unitils.org/apidocs/org/unitils/dbunit/annotation/DataSet.html

No comments: