Package org.fest.assertions

Assertion methods bound to the type they apply.

See:
          Description

Interface Summary
AssertExtension Understands a marker interface for used-defined assertions.
Description Understands a description of something.
NumberAssert Understands a template of assertion methods for numbers (primitives and objects.)
 

Class Summary
ArrayAssert<T> Understands assertions for arrays.
ArrayInspection Understands utility methods for arrays.
Assert Understands the base class for all assertion methods for objects and primitives.
Assertions Understands an entry point for assertion methods for different data types.
BasicDescription Understands the default implementation of Description.
BigDecimalAssert Understands assertion methods for BigDecimal.
BooleanArrayAssert Understands assertion methods for boolean arrays.
BooleanAssert Understands assertion methods for boolean values.
ByteArrayAssert Understands assertion methods for byte arrays.
ByteAssert Understands assertion methods for bytes.
CharArrayAssert Understands assertion methods for char arrays.
CharAssert Understands assertion methods for chars.
CollectionAssert Understands assertions for collections.
Collections Understands utility methods related to Collections.
ComparableAssert<T extends Comparable<T>> Understands a template for assertion methods, applicable to Comparables.
ComparisonFailureFactory Understands creation of JUnit's ComparisonFailure.
Condition<T> Understands a condition to be met by a given Object.
Delta Understands a finite increment in a variable.
DoubleArrayAssert Understands assertion methods for double arrays.
DoubleAssert Understands Assertion methods for Double.
DoubleAssert.Delta Deprecated. use top-level class Delta instead.
Fail Understands failure methods.
FileAssert Understands assertion methods for File.
FloatArrayAssert Understands assertion methods for float arrays.
FloatAssert Understands assertion methods for floats.
FloatAssert.Delta Deprecated. use top-level class Delta instead.
Formatting Provides utility methods related to formatting.
GenericAssert<T> Understands a template for assertion methods.
GroupAssert<T> Understands a template for assertion methods related to arrays or collections.
ImageAssert Understands assertion methods for images.
Index Understands an index.
IntArrayAssert Understands assertion methods for int arrays.
IntAssert Understands assert method for ints.
ListAssert Understands assertions for Lists.
LongArrayAssert Understands assertion methods for long arrays.
LongAssert Understands assertion methods for longs.
MapAssert Understands assertions for Maps.
MapAssert.Entry Understands an entry in a Map.
ObjectArrayAssert Understands assertions for Object arrays.
ObjectAssert Understands assertion methods for objects.
PrimitiveAssert Understands a template for assertion methods for primitive values.
ShortArrayAssert Understands assertion methods for short arrays.
ShortAssert Understands assertion methods for shorts.
StringAssert Understands assertion methods for Strings.
Threshold Understands a threshold.
ThrowableAssert Understands assertion methods for Throwable.
 

Package org.fest.assertions Description

Assertion methods bound to the type they apply. The entry point is any of the "assertThat" methods in Assertions (assertion classes cannot be instantiated directly.)

For example:

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

List<Employee> newEmployees = employees.hired(TODAY);
assertThat(newEmployees).hasSize(6);



Copyright © 2007-2010 FEST (Fixtures for Easy Software Testing). All Rights Reserved.