public class SoftAssertionIterableAssert<ELEMENT> extends FactoryBasedNavigableIterableAssert<SoftAssertionIterableAssert<ELEMENT>,java.lang.Iterable<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>>
Iterable
s without any final methods to allow proxying.iterables
actual, conditions, info, myself, objects
Constructor and Description |
---|
SoftAssertionIterableAssert(java.lang.Iterable<? extends ELEMENT> actual) |
SoftAssertionIterableAssert(java.util.Iterator<? extends ELEMENT> actual) |
Modifier and Type | Method and Description |
---|---|
protected <ELEMENT2> AbstractListAssert<?,java.util.List<? extends ELEMENT2>,ELEMENT2,ObjectAssert<ELEMENT2>> |
newListAssertInstance(java.util.List<? extends ELEMENT2> newActual)
Create a friendly soft or "hard" assertion.
|
toAssert
allMatch, allMatch, allSatisfy, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, as, as, contains, containsAll, containsExactly, containsExactlyElementsOf, containsExactlyInAnyOrder, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyOnce, containsSequence, containsSequence, containsSubsequence, containsSubsequence, describedAs, describedAs, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSubsequence, doesNotContainSubsequence, doesNotHave, doesNotHaveDuplicates, doesNotHaveSameClassAs, doNotHave, element, endsWith, extracting, extracting, extracting, extracting, extracting, extracting, extractingResultOf, extractingResultOf, filteredOn, filteredOn, filteredOn, filteredOn, filteredOnNull, first, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, has, hasAtLeastOneElementOfType, hasOnlyElementsOfType, hasOnlyElementsOfTypes, hasOnlyOneElementSatisfying, hasSameClassAs, hasSameElementsAs, hasSameSizeAs, hasSameSizeAs, hasSize, 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, overridingErrorMessage, size, startsWith, toLazyIterable, usingComparator, usingComparatorForElementFieldsWithNames, usingComparatorForElementFieldsWithType, usingComparisonStrategy, usingDefaultComparator, usingDefaultElementComparator, usingElementComparator, usingElementComparatorIgnoringFields, usingElementComparatorOnFields, usingFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparator, withFailMessage, withThreadDumpOnError
asList, asString, descriptionText, equals, failWithMessage, getWritableAssertionInfo, hashCode, isInstanceOfSatisfying, isNull, matches, matches, satisfies, setCustomRepresentation, throwAssertionError, withRepresentation
public SoftAssertionIterableAssert(java.lang.Iterable<? extends ELEMENT> actual)
public SoftAssertionIterableAssert(java.util.Iterator<? extends ELEMENT> actual)
protected <ELEMENT2> AbstractListAssert<?,java.util.List<? extends ELEMENT2>,ELEMENT2,ObjectAssert<ELEMENT2>> newListAssertInstance(java.util.List<? extends ELEMENT2> newActual)
AbstractIterableAssert
Implementations need to redefine it so that some methods, such as AbstractIterableAssert.extracting(Extractor)
, are able
to build the appropriate list assert (eg: ListAssert
versus SoftAssertionListAssert
).
The default implementation will assume that this concrete implementation is NOT a soft assertion.
newListAssertInstance
in class AbstractIterableAssert<SoftAssertionIterableAssert<ELEMENT>,java.lang.Iterable<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>>
newActual
- new valueAbstractListAssert
.