Package org.assertj.core.api
Class SoftAssertionListAssert<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.AbstractListAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>
org.assertj.core.api.FactoryBasedNavigableListAssert<SoftAssertionListAssert<ELEMENT>,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>>
org.assertj.core.api.SoftAssertionListAssert<ELEMENT>
- All Implemented Interfaces:
Assert<SoftAssertionListAssert<ELEMENT>,,List<? extends ELEMENT>> Descriptable<SoftAssertionListAssert<ELEMENT>>,EnumerableAssert<SoftAssertionListAssert<ELEMENT>,,ELEMENT> ExtensionPoints<SoftAssertionListAssert<ELEMENT>,,List<? extends ELEMENT>> IndexedObjectEnumerableAssert<SoftAssertionListAssert<ELEMENT>,,ELEMENT> ObjectEnumerableAssert<SoftAssertionListAssert<ELEMENT>,ELEMENT>
public class SoftAssertionListAssert<ELEMENT>
extends FactoryBasedNavigableListAssert<SoftAssertionListAssert<ELEMENT>,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>>
Concrete assertions for
Lists without any final methods to allow proxying.- Since:
- 2.5.1 / 3.5.1
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractListAssert
listsFields inherited from class org.assertj.core.api.AbstractIterableAssert
iterablesFields inherited from class org.assertj.core.api.AbstractAssert
actual, conditions, info, myself, objects -
Constructor Summary
Constructors -
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.FactoryBasedNavigableListAssert
toAssertMethods inherited from class org.assertj.core.api.AbstractListAssert
as, as, contains, describedAs, describedAs, doesNotContain, doesNotHave, doesNotHaveSameClassAs, has, has, hasSameClassAs, hasToString, is, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isOfAnyClassIn, isSameAs, isSorted, isSortedAccordingTo, overridingErrorMessage, usingComparator, usingComparisonStrategy, usingDefaultComparator, usingDefaultElementComparator, usingElementComparator, withFailMessage, withThreadDumpOnErrorMethods inherited from class org.assertj.core.api.AbstractIterableAssert
allMatch, allMatch, allSatisfy, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsExactly, containsExactlyElementsOf, containsExactlyInAnyOrder, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyOnce, containsSequence, containsSequence, containsSubsequence, containsSubsequence, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSubsequence, doesNotContainSubsequence, doesNotHaveDuplicates, doNotHave, element, endsWith, extracting, extracting, extracting, extracting, extracting, extracting, extractingResultOf, extractingResultOf, filteredOn, filteredOn, filteredOn, filteredOn, filteredOnNull, first, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, hasAtLeastOneElementOfType, hasOnlyElementsOfType, hasOnlyElementsOfTypes, hasOnlyOneElementSatisfying, hasSameElementsAs, hasSameSizeAs, hasSameSizeAs, hasSize, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, inBinary, inHexadecimal, isEmpty, isNotEmpty, isNullOrEmpty, isSubsetOf, isSubsetOf, last, navigationDescription, size, startsWith, toLazyIterable, usingComparatorForElementFieldsWithNames, usingComparatorForElementFieldsWithType, usingElementComparatorIgnoringFields, usingElementComparatorOnFields, usingFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparatorMethods inherited from class org.assertj.core.api.AbstractAssert
asList, asString, descriptionText, equals, failWithMessage, getWritableAssertionInfo, hashCode, isInstanceOfSatisfying, isNull, matches, matches, satisfies, setCustomRepresentation, throwAssertionError, withRepresentationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.EnumerableAssert
hasSameSizeAs, hasSameSizeAs, hasSize, isEmpty, isNotEmpty, isNullOrEmptyMethods inherited from interface org.assertj.core.api.ObjectEnumerableAssert
allMatch, allMatch, allSatisfy, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsExactly, containsExactlyElementsOf, containsExactlyInAnyOrder, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyOnce, containsSequence, containsSequence, containsSubsequence, containsSubsequence, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSubsequence, doesNotContainSubsequence, doesNotHaveDuplicates, doNotHave, endsWith, hasAtLeastOneElementOfType, hasOnlyElementsOfType, hasOnlyElementsOfTypes, hasSameElementsAs, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, isSubsetOf, isSubsetOf, startsWith
-
Constructor Details
-
SoftAssertionListAssert
-
-
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<SoftAssertionListAssert<ELEMENT>,List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> - Parameters:
newActual- new value- Returns:
- a new
AbstractListAssert.
-