Package org.fest.assertions.error
Class ShouldBeSorted
- java.lang.Object
 - 
- org.fest.assertions.error.BasicErrorMessageFactory
 - 
- org.fest.assertions.error.ShouldBeSorted
 
 
 
- 
- All Implemented Interfaces:
 ErrorMessageFactory
public class ShouldBeSorted extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies a group of elements is sorted failed.
A group of elements can be a collection or an array.- Author:
 - Joel Costigliola
 
 
- 
- 
Field Summary
- 
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format 
 - 
 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldBeSorted(int i, java.lang.Object group)Creates a new.ShouldBeSortedstatic ErrorMessageFactoryshouldBeSortedAccordingToGivenComparator(int i, java.lang.Object group, java.util.Comparator<?> comparator)static ErrorMessageFactoryshouldHaveComparableElementsAccordingToGivenComparator(java.lang.Object actual, java.util.Comparator<?> comparator)static ErrorMessageFactoryshouldHaveMutuallyComparableElements(java.lang.Object actual)- 
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString 
 - 
 
 - 
 
- 
- 
Method Detail
- 
shouldBeSorted
public static ErrorMessageFactory shouldBeSorted(int i, java.lang.Object group)
Creates a new.ShouldBeSorted- Parameters:
 i- the index of elements whose not naturally ordered with the next.group- the actual group in the failed assertion (either collection or an array).- Returns:
 - an instance of 
ErrorMessageFactory. 
 
- 
shouldBeSortedAccordingToGivenComparator
public static ErrorMessageFactory shouldBeSortedAccordingToGivenComparator(int i, java.lang.Object group, java.util.Comparator<?> comparator)
 
- 
shouldHaveMutuallyComparableElements
public static ErrorMessageFactory shouldHaveMutuallyComparableElements(java.lang.Object actual)
 
- 
shouldHaveComparableElementsAccordingToGivenComparator
public static ErrorMessageFactory shouldHaveComparableElementsAccordingToGivenComparator(java.lang.Object actual, java.util.Comparator<?> comparator)
 
 - 
 
 -