开发者

AtUnit vs 'Junit,JMock and GUICE' by hand -?

开发者 https://www.devze.com 2022-12-13 03:47 出处:网络
How does AtUnit fare with respect to unit testing using DI and guice ?. Please share yo开发者_Python百科ur experiences.I have found it works rather well and is very simple to use. In my case though, a

How does AtUnit fare with respect to unit testing using DI and guice ?. Please share yo开发者_Python百科ur experiences.


I have found it works rather well and is very simple to use. In my case though, after a while, I decided to revert back to my old pattern of rarely using DI in unit tests, unless I'm testing something functional. I found that all the extras that AtUnit was providing were simply not being used in my situation.

In the cases where I do use Guice in tests, my unit test class extends AbstractModule and I do the Guice initialization etc manually in my @Before method. I suppose using AtUnit here would be pretty much the same with the exception that all my manual stuff would mostly disappear.

0

精彩评论

暂无评论...
验证码 换一张
取 消