Need help with fest-assert-2.x?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

alexruiz
401 Stars 74 Forks Apache License 2.0 511 Commits 70 Opened issues

Description

FEST Fluent Assertions 2.x

Services available

!
?

Need anything else?

Contributors list

FEST-Assert provides a fluent interface for assertions.

Example:

int removed = employees.removeFired();
assertThat(removed).isZero();

List 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 : * Joda Time assertions * Guava assertions
* Android assertions

For more details please visit :

Many thanks to Cloudbees for their FOSS program that allows FEST to have a Jenkins CI server and Sonar for code quality report.

cloudbees

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.