1+, if you/we overhaul all existing tests and forbid the usage of org.junit.Assert. Otherwise it is just another pet in our zoo.

Am 05.01.17 um 22:51 schrieb P. Ottlinger:
Hi,

does anyone object that we use assertj for mor expressive testing matchers?

I just stumbled upon:

         assertTrue(change.getChanges().size() == 1);

which would be more clear as
assertThat(change.getChanges()).isNotNull().isNotEmpty().hasSize(1);


Any objections if I add assertJ in test-scope?

Cheers,
Phil

--
N Oliver B. Fischer
A Schönhauser Allee 64, 10437 Berlin, Deutschland/Germany
P +49 30 44793251
M +49 178 7903538
E [email protected]
S oliver.b.fischer
J [email protected]
X http://xing.to/obf

Reply via email to