Iterables.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ComparisonStrategy | |
| pack-priv Conditions | |
| pack-priv Failures | |
| private static final Iterables | |
| pack-priv Predicates |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private AssertionError | |
| private AssertionError | |
| private AssertionError | |
| private AssertionError | actualDoesNotContainSubsequence(AssertionInfo info, Iterable<?> actual, Object[] subsequence, int subsequenceIndex)
|
| private AssertionError | |
| private AssertionError | |
| private static <E> boolean | |
| private boolean | |
| public <E> void | assertAllMatch(AssertionInfo info, Iterable<? extends E> actual, Predicate<? super E> predicate, PredicateDescription predicateDescription)
|
| public <E> void | assertAllSatisfy(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E> requirements)
|
| public <E> void | assertAnyMatch(AssertionInfo info, Iterable<? extends E> actual, Predicate<? super E> predicate, PredicateDescription predicateDescription)
|
| public <E> void | assertAnySatisfy(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E> requirements)
|
| public < the type of actual elements T> void | assertAre(AssertionInfo
contains information about the assertion. info, Iterable<? extends T> the given actual, Condition<? super T> Iterable.the given condition)Condition.Assert that each element of given |
| public < the type of actual elements E> void | assertAreAtLeast(AssertionInfo
contains information about the assertion. info, Iterable<? extends E> the given actual, int Iterable.the minimum number of times the condition should be verified. times, Condition<? super E> the given condition)Condition.Assert that there are at least n elements in the actual |
| public < the type of actual elements E> void | assertAreAtMost(AssertionInfo
contains information about the assertion. info, Iterable<? extends E> the given actual, int Iterable.the number of times the condition should be at most verified. n, Condition<? super E> the given condition)Condition.Assert that there are at most n elements in the actual |
| public < the type of actual elements E> void | assertAreExactly(AssertionInfo
contains information about the assertion. info, Iterable<? extends E> the given actual, int Iterable.the exact number of times the condition should be verified. times, Condition<? super E> the given condition)Condition.Verifies that there are exactly n elements in the actual |
| public < the type of actual elements E> void | assertAreNot(AssertionInfo
contains information about the assertion. info, Iterable<? extends E> the given actual, Condition<? super E> Iterable.the given condition)Condition.Assert that each element of given |
| public void | assertContains(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object[] Iterable.the values that are expected to be in the given values)Iterable.Asserts that the given |
| public void | assertContainsAll(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Iterable<?> Iterable.the other other)Iterable.Asserts that the given |
| public void | assertContainsAnyOf(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object[] Iterable.the values that, at least one of which is expected to be in the given values)Iterable.Asserts that the given |
| public void | assertContainsExactly(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object[] Iterable.the values that are expected to be in the given values)Iterable in order.Asserts that the given |
| public void | |
| public void | assertContainsNull(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual)Iterable.Asserts that the given |
| public void | assertContainsOnly(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object[] Iterable.the values that are expected to be in the given expectedValues)Iterable.Asserts that the given |
| public void | assertContainsOnlyNulls(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual)Iterable.Asserts that the given |
| public void | assertContainsOnlyOnce(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object[] Iterable.the values that are expected to be in the given values)Iterable.Asserts that the given |
| public void | assertContainsSequence(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object[] Iterable.the sequence of objects to look for. sequence)Verifies that the given |
| public void | assertContainsSubsequence(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object[] Iterable.the subsequence of objects to look for. subsequence)Verifies that the given |
| public void | assertDoesNotContain(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object[] Iterable.the values that are expected not to be in the given values)Iterable.Asserts that the given |
| public < the type of actual elements T> void | assertDoesNotContainAnyElementsOf(AssertionInfo
contains information about the assertion. info, Iterable<? extends T> the given actual, Iterable<? extends T> Iterable.the values that are expected not to be in the given iterable)Iterable.Asserts that the given |
| public void | assertDoesNotContainNull(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual)Iterable.Asserts that the given |
| public void | assertDoesNotContainSequence(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object[] Iterable.the sequence of objects to look for. sequence)Verifies that the given |
| public void | assertDoesNotContainSubsequence(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object[] Iterable.the subsequence of objects to look for. subsequence)Verifies that the given |
| public void | assertDoesNotHaveDuplicates(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual)Iterable.Asserts that the given |
| public < the type of actual elements E> void | assertDoNotHave(AssertionInfo
contains information about the assertion. info, Iterable<? extends E> the given actual, Condition<? super E> Iterable.the given condition)Condition.Assert that each element of given |
| private void | assertElementOrder(AssertionInfo info, Iterable<?> actual, Object[] values, List<Object> actualAsList)
|
| public void | assertEmpty(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual)Iterable.Asserts that the given |
| public void | assertEndsWith(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object Iterable.the first element of the end sequence. first, Object[] the optional next elements of the end sequence. rest)Verifies that the given |
| public void | assertEndsWith(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object[] Iterable.the sequence of objects to look for. sequence)Verifies that the given |
| private void | assertEquivalency(AssertionInfo info, Iterable<?> actual, Object[] values, List<Object> actualAsList)
|
| public < the type of elements in actual. T> void | assertHasOnlyOneElementSatisfying(AssertionInfo
contains information about the assertion. info, Iterable<? extends T> the given actual, Consumer<? super T> Iterable.the given requirements. consumer)Asserts that the unique element of the |
| public void | assertHasSameSizeAs(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object Iterable.the given array to compare. other)Assert that the actual |
| public void | assertHasSameSizeAs(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Iterable<?> Iterable.the given other)Iterable.Assert that the actual |
| public void | assertHasSize(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, int Iterable.the expected size of expectedSize)actual.Asserts that the number of elements in the given |
| public void | assertHasSizeBetween(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, int Iterable.the lower boundary compared to which actual size should be greater than or equal to. lowerBoundary, int the higher boundary compared to which actual size should be less than or equal to. higherBoundary)Asserts that the number of elements in the given |
| public void | assertHasSizeGreaterThan(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, int Iterable.the given value to compare the size of boundary)actual to.Asserts that the number of elements in the given |
| public void | assertHasSizeGreaterThanOrEqualTo(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, int Iterable.the given value to compare the size of boundary)actual to.Asserts that the number of elements in the given |
| public void | assertHasSizeLessThan(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, int Iterable.the given value to compare the size of boundary)actual to.Asserts that the number of elements in the given |
| public void | assertHasSizeLessThanOrEqualTo(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, int Iterable.the given value to compare the size of boundary)actual to.Asserts that the number of elements in the given |
| public < the type of actual elements E> void | assertHave(AssertionInfo
contains information about the assertion. info, Iterable<? extends E> the given actual, Condition<? super E> Iterable.the given condition)Condition.Assert that each element of given |
| public < the type of actual elements E> void | assertHaveAtLeast(AssertionInfo
contains information about the assertion. info, Iterable<? extends E> the given actual, int Iterable.the minimum number of times the condition should be verified. times, Condition<? super E> the given condition)Condition.An alias method of |
| public < the type of actual elements E> void | assertHaveAtMost(AssertionInfo
contains information about the assertion. info, Iterable<? extends E> the given actual, int Iterable.the number of times the condition should be at most verified. times, Condition<? super E> the given condition)Condition.An alias method of |
| public < the type of actual elements E> void | assertHaveExactly(AssertionInfo
contains information about the assertion. info, Iterable<? extends E> the given actual, int Iterable.the exact number of times the condition should be verified. times, Condition<? super E> the given condition)Condition.An alias method of |
| public void | assertIsSubsetOf(AssertionInfo
contains information about the assertion. info, Iterable<?> the actual actual, Iterable<?> Iterable.the values)Iterable that should contain all actual elements.Verifies that the actual |
| private void | assertIterableContainsGivenValues(Class<? extends Iterable<T>> clazz, Iterable<?> actual, Object[] values, AssertionInfo info)
|
| public <E> void | assertNoneMatch(AssertionInfo info, Iterable<? extends E> actual, Predicate<? super E> predicate, PredicateDescription predicateDescription)
|
| public <E> void | assertNoneSatisfy(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E> restrictions)
|
| public void | assertNotEmpty(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual)Iterable.Asserts that the given |
| pack-priv void | |
| public void | assertNullOrEmpty(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual)Iterable.Asserts that the given |
| public <E> void | assertSatisfiesExactly(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E>[] allRequirements)
|
| public <E> void | assertSatisfiesExactlyInAnyOrder(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E>[] consumers)
|
| public <E> void | assertSatisfiesOnlyOnce(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E> requirements)
|
| public void | assertStartsWith(AssertionInfo
contains information about the assertion. info, Iterable<?> the given actual, Object[] Iterable.the sequence of objects to look for. sequence)Verifies that the given |
| public <ACTUAL_ELEMENT, OTHER_ELEMENT> void | assertZipSatisfy(AssertionInfo info, Iterable<? extends ACTUAL_ELEMENT> actual, Iterable<OTHER_ELEMENT> other, BiConsumer<? super ACTUAL_ELEMENT, OTHER_ELEMENT> zipRequirements)
|
| public static <T> Predicate | |
| private static void | |
| private static void | |
| private void | |
| private boolean | commonCheckThatIterableAssertionSucceeds(AssertionInfo info, Failures failures, Iterable<?> actual, Object[] sequence)
|
| private List | |
| private <E> boolean | conditionIsSatisfiedAtLeastNTimes(Iterable<? extends E> actual, int n, Condition<? super E> condition)
|
| private <E> boolean | conditionIsSatisfiedAtMostNTimes(Iterable<? extends E> actual, Condition<? super E> condition, int n)
|
| private <E> boolean | |
| private boolean | Returns: true if actualAsList contains exactly the given sequence at given starting index, false otherwise.the list to look sequence in actualAsList, Object[] the sequence to look for sequence, int the index of actual list at which we start looking for sequence. startingIndex)Return true if actualAsList contains exactly the given sequence at given starting index, false otherwise. |
| private static Collection | |
| private static <E> Optional | |
| private <E> Optional | |
| private <ACTUAL_ELEMENT, OTHER_ELEMENT> Optional | failsZipRequirements(ACTUAL_ELEMENT actualElement, OTHER_ELEMENT otherElement, BiConsumer<ACTUAL_ELEMENT, OTHER_ELEMENT> zipRequirements)
|
| public Comparator | |
| public ComparisonStrategy | |
| public static Iterables | Returns: the singleton instance of this class based onStandardComparisonStrategy.Returns the singleton instance of this class based on |
| private boolean | |
| private void | |
| private void | |
| private <E> List | |
| private static <E> Queue | |
| private static <E> Deque | |
| private <E> List | |
| private AssertionError | shouldContainExactlyWithDiffAssertionError(IterableDiff<Object> diff, Iterable<?> actual, Object[] values, AssertionInfo info)
|
| private AssertionError | shouldContainExactlyWithIndexAssertionError(Iterable<?> actual, Object[] values, List<IndexedDiff> indexedDiffs, AssertionInfo info)
|