FEST-Assert

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

FEST-Assert Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Alex Ruiz
  • Publisher web site:
  • http://fest.easytesting.org/mocks/index.html

FEST-Assert Tags


FEST-Assert Description

A Java library that provides a fluent interface for writing assertions. 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- FileExamples: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); Requirements: · Java 2 Standard Edition Runtime Environment What's New in This Release: · Lazy-loaded descriptions were added. · Additional root elements in the fluent interface for the assertions were removed.


FEST-Assert Related Software