Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Welcome to the FEST Fluent Assertions Module

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.

FEST-Assert 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
  • Map
  • Primitives (boolean, int, char, etc.)
  • Arrays of Object
  • Arrays of primitives
  • BufferedImage
  • Throwable
  • File
  • BigDecimal

It can be downloaded here. For Maven 2 users, the project's repository can be found at http://svn.codehaus.org/fest/m2/repo/ (groupId: org.easytesting, artifactId: fest-assert).

Examples

<strong><a onclick='return false;' href="/display/FEST/Extending+FEST-Assert" title="View Extending"><span class="image-wrap" style=""><img src="/download/attachments/117900386/folder_try_orange_search_2.png?version=1&amp;modificationDate=1256886282567&amp;api=v2" style="border: 0px solid black" /></span></a></strong>
  <strong><a onclick='return false;' href="/display/FEST/Extending+FEST-Assert" title="View Extending">Extending</a></strong>
Extending FEST-Assert with custom conditions and assertions.
 
<strong><a onclick='return false;' href="/display/FEST/Comparing+to+Hamcrest" title="View Comparing to Hamcrest"><span class="image-wrap" style=""><img src="/download/attachments/117900386/folder_try_orange_search_2.png?version=1&amp;modificationDate=1256886282567&amp;api=v2" style="border: 0px solid black" /></span></a></strong>
  <strong><a onclick='return false;' href="/display/FEST/Comparing+to+Hamcrest" title="View Comparing to Hamcrest">Comparing to Hamcrest</a></strong>
Comparing FEST-Assert and Hamcrest.
 
<strong><a onclick='return false;' href="/display/FEST/JUnit-Specific+Features" title="View JUnit-Specific Features"><span class="image-wrap" style=""><img src="/download/attachments/117900386/folder_try_orange_search_2.png?version=1&amp;modificationDate=1256886282567&amp;api=v2" style="border: 0px solid black" /></span></a></strong>
  <strong><a onclick='return false;' href="/display/FEST/JUnit-Specific+Features" title="View JUnit-Specific Features">JUnit-Specific Features</a></strong>
FEST-Assert supports JUnit-specific features.
 
  • No labels