FEST-Assert provides a fluent interface for assertions.
int removed = employees.removeFired(); assertThat(removed).isZero(); List<Employee> newEmployees = employees.hired(TODAY); assertThat(newEmployees).hasSize(6) .contains(frodo, sam); assertThat(yoda).isInstanceOf(Jedi.class) .isEqualTo(foundJedi) .isNotEqualTo(foundSith);
The 2.x branch is an attempt to learn from mistakes made in the the 1.x release, in terms of readability and extensibility.
FEST's assertions are incredibly easy to write: just type
assertThat followed the actual value and a dot, and any Java
IDE will show you all the assertions available for the type of the object to verify. No more confusion about the
order of the "expected" and "actual" values. Our assertions are very readable as well: they read very close to plain
English, making it easier for non-technical people to read test code.
FEST provides also separate modules for :
For more details please visit :
- FEST-Assert's wiki for the most up to date documentation.
- fest-examples project project showing Fest assertions running examples.