Package org.assertj.core.api
Class ProxyableIterableAssert<ELEMENT>
java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractIterableAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>
org.assertj.core.api.FactoryBasedNavigableIterableAssert<ProxyableIterableAssert<ELEMENT>,Iterable<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>>
org.assertj.core.api.ProxyableIterableAssert<ELEMENT>
- All Implemented Interfaces:
Assert<ProxyableIterableAssert<ELEMENT>,,Iterable<? extends ELEMENT>> Descriptable<ProxyableIterableAssert<ELEMENT>>,EnumerableAssert<ProxyableIterableAssert<ELEMENT>,,ELEMENT> ExtensionPoints<ProxyableIterableAssert<ELEMENT>,,Iterable<? extends ELEMENT>> ObjectEnumerableAssert<ProxyableIterableAssert<ELEMENT>,ELEMENT>
public class ProxyableIterableAssert<ELEMENT>
extends FactoryBasedNavigableIterableAssert<ProxyableIterableAssert<ELEMENT>,Iterable<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>>
Concrete assertions for
Iterables without any final methods to allow proxying.- Since:
- 2.5.1 / 3.5.1
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractIterableAssert
iterablesFields inherited from class org.assertj.core.api.AbstractAssert
actual, assertionErrorCreator, conditions, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProxyableIterableAssert<ELEMENT>newAbstractIterableAssert(Iterable<? extends ELEMENT> iterable) This methods is needed to build a new concrete instance of AbstractIterableAssert after a filtering operation is executed.protected <ELEMENT2> AbstractListAssert<?,List<? extends ELEMENT2>, ELEMENT2, ObjectAssert<ELEMENT2>> newListAssertInstance(List<? extends ELEMENT2> newActual) Create aAbstractListAssert.Methods inherited from class org.assertj.core.api.FactoryBasedNavigableIterableAssert
toAssertMethods inherited from class org.assertj.core.api.AbstractIterableAssert
allMatch, allMatch, allSatisfy, anyMatch, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, as, as, contains, containsAll, containsAnyElementsOf, containsAnyOf, containsExactly, containsExactlyElementsOf, containsExactlyInAnyOrder, containsExactlyInAnyOrderElementsOf, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyNulls, containsOnlyOnce, containsOnlyOnceElementsOf, containsSequence, containsSequence, containsSubsequence, containsSubsequence, describedAs, describedAs, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSubsequence, doesNotContainSubsequence, doesNotHave, doesNotHaveAnyElementsOfTypes, doesNotHaveDuplicates, doesNotHaveSameClassAs, doNotHave, element, element, endsWith, endsWith, extracting, extracting, extracting, extracting, extracting, extracting, extractingResultOf, extractingResultOf, filteredOn, filteredOn, filteredOn, filteredOn, filteredOn, filteredOnAssertions, filteredOnNull, first, first, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatMap, flatMap, flatMap, flatMap, getComparatorsByType, getComparatorsForElementPropertyOrFieldTypes, has, hasAtLeastOneElementOfType, hasOnlyElementsOfType, hasOnlyElementsOfTypes, hasOnlyOneElementSatisfying, hasSameClassAs, hasSameElementsAs, hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, hasToString, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, inBinary, inHexadecimal, is, isEmpty, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEmpty, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNullOrEmpty, isOfAnyClassIn, isSameAs, isSubsetOf, isSubsetOf, last, last, map, map, map, navigationDescription, noneMatch, noneSatisfy, overridingErrorMessage, satisfiesExactly, satisfiesExactlyInAnyOrder, singleElement, singleElement, size, startsWith, usingComparator, usingComparator, usingComparatorForElementFieldsWithNames, usingComparatorForElementFieldsWithType, usingComparatorForType, usingComparisonStrategy, usingDefaultComparator, usingDefaultElementComparator, usingElementComparator, usingElementComparatorIgnoringFields, usingElementComparatorOnFields, usingFieldByFieldElementComparator, usingRecursiveComparison, usingRecursiveComparison, usingRecursiveFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparator, withAssertionState, withComparatorsForElementPropertyOrFieldNames, withComparatorsForElementPropertyOrFieldTypes, withFailMessage, withIterables, withThreadDumpOnError, withTypeComparators, zipSatisfyMethods inherited from class org.assertj.core.api.AbstractAssert
asInstanceOf, asList, assertionError, asString, descriptionText, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, hashCode, hasSameHashCodeAs, isElementOfCustomAssert, isInstanceOfSatisfying, isNull, matches, matches, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, withFailMessage, withRepresentationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as
-
Constructor Details
-
ProxyableIterableAssert
-
-
Method Details
-
newListAssertInstance
protected <ELEMENT2> AbstractListAssert<?,List<? extends ELEMENT2>, newListAssertInstanceELEMENT2, ObjectAssert<ELEMENT2>> (List<? extends ELEMENT2> newActual) Description copied from class:AbstractAssertCreate aAbstractListAssert.Implementations need to redefine either to be proxy friendly (i.e. no final assertion methods like
ProxyableListAssert) or generic vararg friendly (to useSafeVarargsannotation which requires final method)likeListAssert.The default implementation will assume that this concrete implementation is NOT a soft assertion.
- Overrides:
newListAssertInstancein classAbstractAssert<ProxyableIterableAssert<ELEMENT>,Iterable<? extends ELEMENT>> - Type Parameters:
ELEMENT2- the type of elements.- Parameters:
newActual- new value- Returns:
- a new
AbstractListAssert.
-
newAbstractIterableAssert
protected ProxyableIterableAssert<ELEMENT> newAbstractIterableAssert(Iterable<? extends ELEMENT> iterable) Description copied from class:AbstractIterableAssertThis methods is needed to build a new concrete instance of AbstractIterableAssert after a filtering operation is executed.If you create your own subclass of AbstractIterableAssert, simply returns an instance of it in this method.
- Overrides:
newAbstractIterableAssertin classFactoryBasedNavigableIterableAssert<ProxyableIterableAssert<ELEMENT>,Iterable<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> - Parameters:
iterable- the iterable used to build the concrete instance of AbstractIterableAssert- Returns:
- concrete instance of AbstractIterableAssert
-