Showdown of the Asserts

Showdown of theĀ Asserts

This talk is based on heated discussions about the syntax of asserts. Do you like the good old assertNotEquals(id, c.getId()) or do you prefer something fancier like assertThat(c.getId(), is(not(equalTo(id))))?
We will take a quick look at the differences between asserts in JUnit, TestNG, Hamcrest, AssertJ, Truth, and Spock. This topic is at least as important as Vim vs Emacs and tabs vs spaces!

Ce4685da897c912aa41a815435b40a5a?s=128

Philipp Krenn

October 01, 2015
Tweet