[logback-dev] Discussion about mock framework ...
Tomasz Nurkiewicz
nurkiewicz at gmail.com
Sun Jun 17 14:03:28 CEST 2012
EasyMock seems to be loosing momentum in favour to Mockito (at least
according to Google Trends and SO questions). Moreover AFAIK PowerMock
is an extension to existing frameworks (namely EasyMock and Mockito are
supported), not a framework on its own.
I would actually suggest using one mocking framework for the whole
Logback umbrella. Otherwise maintaining someone else's tests with
mocking framework we are unfamiliar with becomes painful.
Talking about testing, some time ago I added FEST assertions [1] to
Logback, I encourage everyone to use it, library provides very nice
fluent Java API for assertions:
assertThat(age).isEqualTo(20);
assertThat(list).hasSize(4);
[1]: http://docs.codehaus.org/display/FEST/Fluent+Assertions+Module
On 17.06.2012 13:51, ceki wrote:
>
> Joern Huxhorn wrote a few logabck tests using easymock [1]. I don't
> really know the easymock API but the little I know I don't like that
> much. If someone is at ease using one mock API or another, let that
> person hack away with API he/she prefers. So imho if Christian likes
> jmockit, by all means let him write tests in jmockit. Similarly, if
> Tony prefers powermock, let him use that. If later a winner emerges,
> we'll pick the winner. Of course, if we come to an agreement on a
> single API, that's cool too.
>
> [1] http://www.easymock.org/
>
pozdrowienia
--
Tomasz Nurkiewicz
http://nurkiewicz.blogspot.com
More information about the logback-dev
mailing list