Unitils项目还活着吗? [英] Is Unitils project alive?

查看:151
本文介绍了Unitils项目还活着吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道 unitils project 是否还活着。页面最后一个版本在maven存储库中是3.3。它是3.4.2。(实际上有他们页面的谷歌缓存版本,其版本据说是3.4.2)

anybody knows whether unitils project is still alive. On there pages last version is 3.3 in maven repository it is 3.4.2.(Actually there is google cached version of their pages where the version is said to be 3.4.2)

无论如何,这个项目有任何替代品。我有点缺乏生动的社区,并且真的不想被迫死的项目。

Anyway is there any replacement for this project. I kind of lack the vivid community around and really don't want to be bound to dying project.

推荐答案

Unitils似乎是现在几乎被遗弃了。项目可在GitHub 这里上找到,您可以查看其历史和活动。

Unitils seems to be almost abandoned nowadays. Project is available on the GitHub here and you can look at its history and activity.

无论如何我的两分钱......

Anyways my two cents...

Unitils 有严重的缺点:


  • 集成许多第三方库(easymock,dbunit,spring,dbmaintainer,xmlunit,slf4j等),从而强制他们的版本 - 这是一个非常严重的缺点

  • 由于依赖于许多第三方图书馆,几乎不可能在没有任何公司的情况下保持最新状态。

  • Unitils 4.0自06.2011开发并计划于2012年1月1日发布,但现在(01.2016) 4年后仍未发布。

  • Integrates many third-party libs (easymock, dbunit, spring, dbmaintainer, xmlunit, slf4j etc) and thus forces their versions - it is a really serious drawback
  • Due to being dependent on many 3rd party libraries, it is almost impossible to keep it up to date without any company behind.
  • Unitils 4.0 is developed since 06.2011 and was planned to release at 01.2012, but now (01.2016) after 4 years is still not released.

DbUnit

对于数据库驱动的应用程序,可能看起来有趣的方式是简单的DbUnit + Spring-Test或者第三方工具:

For database-driven apps it may seem that interesting way to go is a plain DbUnit + Spring-Test or alternatively some 3rd party tools:

  • excilys/spring-dbunit that comes with handy @DataSet annotation and is actively developed on the github, also is constantly updated to use the newest versions of DbUnit and Spring Framework.
  • springtestdbunit/spring-test-dbunit which is also hosted on the github (comes with a @DatabaseSetup annotation).

两者都非常相似,但我个人认为DbUnit令人困惑,相当繁琐且耗时。为什么?尝试维护大量的小xml文件,你就会发现我的意思。结合多个数据集真的很难。

Both are very similar, but personally I find DbUnit confusing, quite cumbersome and time-consuming. Why? Try to maintain large amount of small xml files and you find out what I mean. Also combining multiple data sets is really hard.

DbSetup

我的选择。 DbSetup 不需要外部xml / json文件,非常方便,允许您自由组合多个数据使用流利的建设者设置。
只需查看下面的代码:

My choice. DbSetup doesn't need external xml/ json files, is extremely convenient and allows you to combine freely multiple data sets using fluent builders. Just look at code below:

 final Operation sql =
         sequenceOf(
                 CommonOperations.DELETE_ALL,
                 CommonOperations.INSERT_REFERENCE_DATA,
                 prepareSpecialData()
         );
 DbSetup dbSetup = new DbSetup(new DataSourceDestination(dataSource), sql);

一切都是java,所以你可以自由地重构它,提取方法等。

Everything is java, so you can freely refactor it, extract methods etc.

希望有所帮助。

这篇关于Unitils项目还活着吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆