Package org.assertj.core.api
Class ProxyableMapAssert<KEY,VALUE>
java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractObjectAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractMapAssert<ProxyableMapAssert<KEY,VALUE>,Map<KEY,VALUE>,KEY,VALUE>
org.assertj.core.api.ProxyableMapAssert<KEY,VALUE>
- All Implemented Interfaces:
Assert<ProxyableMapAssert<KEY,
,VALUE>, Map<KEY, VALUE>> Descriptable<ProxyableMapAssert<KEY,
,VALUE>> EnumerableAssert<ProxyableMapAssert<KEY,
,VALUE>, Map.Entry<? extends KEY, ? extends VALUE>> ExtensionPoints<ProxyableMapAssert<KEY,
VALUE>, Map<KEY, VALUE>>
public class ProxyableMapAssert<KEY,VALUE>
extends AbstractMapAssert<ProxyableMapAssert<KEY,VALUE>,Map<KEY,VALUE>,KEY,VALUE>
Concrete assertions for
Map
s without any final methods to allow proxying.-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractMapAssert
maps
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, assertionErrorCreator, conditions, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <ELEMENT> AbstractListAssert<?,
List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> newListAssertInstance
(List<? extends ELEMENT> newActual) Create aAbstractListAssert
.Methods inherited from class org.assertj.core.api.AbstractMapAssert
allSatisfy, anySatisfy, as, as, contains, containsAllEntriesOf, containsAnyOf, containsEntry, containsExactly, containsExactlyEntriesOf, containsExactlyInAnyOrderEntriesOf, containsKey, containsKeys, containsOnly, containsOnlyKeys, containsOnlyKeys, containsValue, containsValues, describedAs, describedAs, doesNotContain, doesNotContainEntry, doesNotContainKey, doesNotContainKeys, doesNotContainValue, doesNotHave, doesNotHaveSameClassAs, extracting, extracting, extractingByKey, extractingByKey, extractingByKeys, extractingFromEntries, extractingFromEntries, flatExtracting, has, hasEntrySatisfying, hasEntrySatisfying, hasEntrySatisfying, hasEntrySatisfying, hasKeySatisfying, hasSameClassAs, hasSameSizeAs, hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, hasToString, hasValueSatisfying, is, isEmpty, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEmpty, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNullOrEmpty, isOfAnyClassIn, isSameAs, noneSatisfy, overridingErrorMessage, size, usingComparator, usingComparator, usingDefaultComparator, usingDefaultElementComparator, usingElementComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withThreadDumpOnError
Methods inherited from class org.assertj.core.api.AbstractObjectAssert
extracting, extracting, extracting, extracting, extracting, extracting, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, hasOnlyFields, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, withAssertionState, withComparatorByPropertyOrField, withTypeComparator
Methods 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, inBinary, inHexadecimal, isElementOfCustomAssert, isInstanceOfSatisfying, isNull, matches, matches, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, withFailMessage, withRepresentation
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as
-
Constructor Details
-
ProxyableMapAssert
-
-
Method Details
-
newListAssertInstance
protected <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>, newListAssertInstanceELEMENT, ObjectAssert<ELEMENT>> (List<? extends ELEMENT> 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<ProxyableMapAssert<KEY,
VALUE>, Map<KEY, VALUE>> - Type Parameters:
ELEMENT
- the type of elements.- Parameters:
newActual
- new value- Returns:
- a new
AbstractListAssert
.
-