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 forIterable
s without any final methods to allow proxying.- Since:
- 2.5.1 / 3.5.1
- Author:
- Gaƫl LHEZ
-
-
Field Summary
-
Fields inherited from class org.assertj.core.api.AbstractIterableAssert
iterables
-
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, assertionErrorCreator, conditions, info, myself, objects, throwUnsupportedExceptionOnEquals
-
-
Constructor Summary
Constructors Constructor Description ProxyableIterableAssert(Iterable<? extends ELEMENT> actual)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ProxyableIterableAssert<ELEMENT>
newAbstractIterableAssert(Iterable<? extends ELEMENT> iterable)
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
toAssert
-
Methods 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, containsSequence, containsSequence, containsSubsequence, containsSubsequence, describedAs, describedAs, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSubsequence, doesNotContainSubsequence, doesNotHave, doesNotHaveAnyElementsOfTypes, doesNotHaveDuplicates, doesNotHaveSameClassAs, doNotHave, element, endsWith, endsWith, extracting, extracting, extracting, extracting, extracting, extracting, extractingResultOf, extractingResultOf, filteredOn, filteredOn, filteredOn, filteredOn, filteredOnAssertions, filteredOnNull, first, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, 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, navigationDescription, noneMatch, noneSatisfy, overridingErrorMessage, size, startsWith, usingComparator, usingComparator, usingComparatorForElementFieldsWithNames, usingComparatorForElementFieldsWithType, usingComparatorForType, usingComparisonStrategy, usingDefaultComparator, usingDefaultElementComparator, usingElementComparator, usingElementComparatorIgnoringFields, usingElementComparatorOnFields, usingFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparator, withAssertionState, withComparatorsForElementPropertyOrFieldNames, withComparatorsForElementPropertyOrFieldTypes, withFailMessage, withIterables, withThreadDumpOnError, withTypeComparators, zipSatisfy
-
Methods inherited from class org.assertj.core.api.AbstractAssert
asInstanceOf, asList, asString, descriptionText, equals, failWithMessage, getWritableAssertionInfo, hashCode, hasSameHashCodeAs, isInstanceOfSatisfying, isNull, matches, matches, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, throwAssertionError, withRepresentation
-
-
-
-
Method Detail
-
newListAssertInstance
protected <ELEMENT2> AbstractListAssert<?,List<? extends ELEMENT2>,ELEMENT2,ObjectAssert<ELEMENT2>> newListAssertInstance(List<? extends ELEMENT2> newActual)
Description copied from class:AbstractAssert
Create aAbstractListAssert
.Implementations need to redefine either to be proxy friendly (i.e. no final assertion methods like
ProxyableListAssert
) or generic vararg friendly (to useSafeVarargs
annotation which requires final method)likeListAssert
.The default implementation will assume that this concrete implementation is NOT a soft assertion.
- Overrides:
newListAssertInstance
in 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)
- Overrides:
newAbstractIterableAssert
in classFactoryBasedNavigableIterableAssert<ProxyableIterableAssert<ELEMENT>,Iterable<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>>
-
-