Package org.assertj.core.api
Class SoftAssertionIterableAssert<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<SoftAssertionIterableAssert<ELEMENT>,Iterable<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>>
org.assertj.core.api.SoftAssertionIterableAssert<ELEMENT>
- All Implemented Interfaces:
Assert<SoftAssertionIterableAssert<ELEMENT>,,Iterable<? extends ELEMENT>> Descriptable<SoftAssertionIterableAssert<ELEMENT>>,EnumerableAssert<SoftAssertionIterableAssert<ELEMENT>,,ELEMENT> ExtensionPoints<SoftAssertionIterableAssert<ELEMENT>,,Iterable<? extends ELEMENT>> ObjectEnumerableAssert<SoftAssertionIterableAssert<ELEMENT>,ELEMENT>
public class SoftAssertionIterableAssert<ELEMENT>
extends FactoryBasedNavigableIterableAssert<SoftAssertionIterableAssert<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, conditions, info, myself, objects -
Constructor Summary
ConstructorsConstructorDescriptionSoftAssertionIterableAssert(Iterable<? extends ELEMENT> actual) SoftAssertionIterableAssert(Iterator<? extends ELEMENT> actual) -
Method Summary
Modifier and TypeMethodDescriptionprotected <ELEMENT2> AbstractListAssert<?,List<? extends ELEMENT2>, ELEMENT2, ObjectAssert<ELEMENT2>> newListAssertInstance(List<? extends ELEMENT2> newActual) Create a friendly soft or "hard" assertion.Methods inherited from class org.assertj.core.api.FactoryBasedNavigableIterableAssert
toAssertMethods inherited from class org.assertj.core.api.AbstractIterableAssert
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, withThreadDumpOnErrorMethods inherited from class org.assertj.core.api.AbstractAssert
asList, asString, descriptionText, equals, failWithMessage, getWritableAssertionInfo, hashCode, isInstanceOfSatisfying, isNull, matches, matches, satisfies, setCustomRepresentation, throwAssertionError, withRepresentation
-
Constructor Details
-
SoftAssertionIterableAssert
-
SoftAssertionIterableAssert
-
-
Method Details
-
newListAssertInstance
protected <ELEMENT2> AbstractListAssert<?,List<? extends ELEMENT2>, newListAssertInstanceELEMENT2, ObjectAssert<ELEMENT2>> (List<? extends ELEMENT2> newActual) Description copied from class:AbstractIterableAssertCreate a friendly soft or "hard" assertion.Implementations need to redefine it so that some methods, such as
AbstractIterableAssert.extracting(Extractor), are able to build the appropriate list assert (eg:ListAssertversusSoftAssertionListAssert).The default implementation will assume that this concrete implementation is NOT a soft assertion.
- Overrides:
newListAssertInstancein classAbstractIterableAssert<SoftAssertionIterableAssert<ELEMENT>,Iterable<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> - Parameters:
newActual- new value- Returns:
- a new
AbstractListAssert.
-