FEST-Assert 1.2

A Java library that provides a fluent interface for writing assertions.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!

What's new in FEST-Assert 1.0:

  • Lazy-loaded descriptions were added.
  • Additional root elements in the fluent interface for the assertions were removed.
Read full changelog
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
3.6/5 18
DEVELOPED BY:
Alex Ruiz
HOMEPAGE:
fest.easytesting.org
CATEGORY:
ROOT \ Programming \ Quality Assurance and Testing
FEST-Assert is a Java library that provides a fluent interface for writing assertions. Its main goal is to improve test code readability and make maintenance of tests easier.

This project requires Java SE 5.0 or later and can be used with either JUnit or TestNG.

Currently, this module provides assertions for the following data types:

- Object
- String
- Collection
- Primitives (boolean, int, char, etc.)
- Arrays of Object
- Arrays of primitives
- BufferedImage
- Throwable
- File

Examples:

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

List newEmployees = employees.hired(TODAY);
assertThat(newEmployees).hasSize(6)
.contains(frodo, sam);

String[] newHires = employees.newHiresNames();
assertThat(newHires).containsOnly("Gandalf", "Arwen", "Gimli");

assertThat(yoda).isInstanceOf(Jedi.class)
.isEqualTo(foundJedi)
.isNotEqualTo(foundSith);

Last updated on November 5th, 2009

requirements

#Java library #assertThat library #write assertions #Java #assertThat #library #assertions

Add your review!

SUBMIT