java - Is Unitils project alive? -
anybody knows whether unitils project still alive. on there pages last version 3.3 in maven repository 3.4.2.(actually there google cached version of pages version said 3.4.2)
anyway there replacement project. kind of lack vivid community around , don't want bound dying project.
unitils seems abandoned nowadays. project available on github here , can @ history , activity.
anyways 2 cents...
unitils has serious drawbacks:
- integrates many third-party libs (easymock, dbunit, spring, dbmaintainer, xmlunit, slf4j etc) , forces versions - serious drawback
- due being dependent on many 3rd party libraries, impossible keep date without company behind.
- unitils 4.0 developed since 06.2011 , planned release @ 01.2012, (01.2016) after 4 years still not released.
dbunit
for database-driven apps may seem interesting way go plain dbunit + spring-test or alternatively 3rd party tools:
- excilys/spring-dbunit comes handy
@dataset
annotation , actively developed on github, updated use newest versions of dbunit , spring framework. - springtestdbunit/spring-test-dbunit hosted on github (comes
@databasesetup
annotation).
both similar, find dbunit confusing, quite cumbersome , time-consuming. why? try maintain large amount of small xml files , find out mean. combining multiple data sets hard.
dbsetup
my choice. dbsetup doesn't need external xml/ json files, extremely convenient , allows combine freely multiple data sets using fluent builders. @ code below:
final operation sql = sequenceof( commonoperations.delete_all, commonoperations.insert_reference_data, preparespecialdata() ); dbsetup dbsetup = new dbsetup(new datasourcedestination(datasource), sql);
everything java, can freely refactor it, extract methods etc.
hope helps.
Comments
Post a Comment