Assertion methods bound to the type they apply. The entry point is any of the "assertThat
" methods in
{@link org.fest.assertions.Assertions}
(assertion classes cannot be instantiated directly.)
For example:
int removed = employees.removeFired(); {@link org.fest.assertions.Assertions#assertThat(int) assertThat}(removed).{@link org.fest.assertions.IntAssert#isZero isZero}(); List<Employee> newEmployees = employees.hired(TODAY); {@link org.fest.assertions.Assertions#assertThat(java.util.Collection) assertThat}(newEmployees).{@link org.fest.assertions.CollectionAssert#hasSize(int) hasSize}(6);