Lists.
| Modifier and Type | Field and Description |
|---|---|
| private final ComparisonStrategy | |
| pack-priv Failures | |
| private static final Lists |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public void | assertContains(AssertionInfo
contains information about the assertion. info, List<?> the given actual, Object List.the object to look for. value, Index the index where the object should be stored in the given index)List.Verifies that the given |
| public void | assertDoesNotContain(AssertionInfo
contains information about the assertion. info, List<?> the given actual, Object List.the object to look for. value, Index the index where the object should be stored in the given index)List.Verifies that the given |
| public < the type of the actual value and the type of values that given T> voidCondition takes. | assertHas(AssertionInfo
contains information about the assertion. info, List<? extends T> the given actual, Condition<? super T> List.the given condition, Index Condition.the index where the object should be stored in the given index)List.Verifies that the given |
| public < the type of the actual value and the type of values that given T> voidCondition takes. | assertIs(AssertionInfo
contains information about the assertion. info, List<? extends T> the given actual, Condition<? super T> List.the given condition, Index Condition.the index where the object should be stored in the given index)List.Verifies that the given |
| public void | assertIsSorted(AssertionInfo
contains information about the assertion. info, List<?> the given actual)List.Verifies that the actual list is sorted in ascending order according to the natural ordering of its elements. |
| public void | assertIsSortedAccordingToComparator(AssertionInfo
contains information about the assertion. info, List<?> the given actual, Comparator<?> List.the comparator)Comparator used to compare list elementsVerifies that the actual list is sorted according to the given comparator. |
| private void | |
| private void | |
| private <T> boolean | conditionIsMetAtIndex(AssertionInfo info, List<T> actual, Condition<? super T> condition, Index index)
|
| public Comparator | |
| public ComparisonStrategy | |
| public static Lists | Returns: the singleton instance of this class.Returns the singleton instance of this class. |
| private static List | |
| public <T> void | satisfies(AssertionInfo info, List<? extends T> actual, Consumer<? super T> requirements, Index index)
|
| comparisonStrategy | back to summary |
|---|---|
| private final ComparisonStrategy comparisonStrategy | |
| failures | back to summary |
|---|---|
| pack-priv Failures failures
| |
| INSTANCE | back to summary |
|---|---|
| private static final Lists INSTANCE | |
| Lists | back to summary |
|---|---|
pack-priv Lists()
| |
| Lists | back to summary |
|---|---|
| public Lists(ComparisonStrategy comparisonStrategy) | |
| areEqual | back to summary |
|---|---|
| private boolean areEqual(Object actual, Object other) | |
| assertContains | back to summary |
|---|---|
| public void assertContains(AssertionInfo info, List<?> actual, Object value, Index index) Verifies that the given
| |
| assertDoesNotContain | back to summary |
|---|---|
| public void assertDoesNotContain(AssertionInfo info, List<?> actual, Object value, Index index) Verifies that the given
| |
| assertHas | back to summary |
|---|---|
| public <T> void assertHas(AssertionInfo info, List<? extends T> actual, Condition<? super T> condition, Index index) Verifies that the given
| |
| assertIs | back to summary |
|---|---|
| public <T> void assertIs(AssertionInfo info, List<? extends T> actual, Condition<? super T> condition, Index index) Verifies that the given
| |
| assertIsSorted | back to summary |
|---|---|
| public void assertIsSorted(AssertionInfo info, List<?> actual) Verifies that the actual list is sorted in ascending order according to the natural ordering of its elements.
All list elements must implement the
Unique element lists are considered sorted unless the element type is not Comparable.
| |
| assertIsSortedAccordingToComparator | back to summary |
|---|---|
| public void assertIsSortedAccordingToComparator(AssertionInfo info, List<?> actual, Comparator<?> comparator) Verifies that the actual list is sorted according to the given comparator.
| |
| assertNotNull | back to summary |
|---|---|
| private void assertNotNull(AssertionInfo info, List<?> actual) | |
| assertNotNull | back to summary |
|---|---|
| private void assertNotNull(Condition<?> condition) | |
| conditionIsMetAtIndex | back to summary |
|---|---|
| private <T> boolean conditionIsMetAtIndex(AssertionInfo info, List<T> actual, Condition<? super T> condition, Index index) | |
| getComparator | back to summary |
|---|---|
public Comparator
| |
| getComparisonStrategy | back to summary |
|---|---|
public ComparisonStrategy getComparisonStrategy()
| |
| instance | back to summary |
|---|---|
| public static Lists instance() Returns the singleton instance of this class.
| |
| listOfComparableElements | back to summary |
|---|---|
private static List
| |
| satisfies | back to summary |
|---|---|
| public <T> void satisfies(AssertionInfo info, List<? extends T> actual, Consumer<? super T> requirements, Index index) | |