Maps.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public SELF | Returns: this assertion object.the given requirements that each entry must satisfy. entryRequirements)Verifies that all the actual map entries satisfy the given |
| public SELF | Returns: this assertion object.the given requirements that at least one entry must satisfy. entryRequirements)Verifies that at least one map entry satisfies the given |
| public SELF | as(String
the new description to set. description, Object... optional parameter if description is a format String. args)Overrides org. Overrides default org. |
| public SELF | as(Description
the new description to set. description)Overrides org. Overrides default org. |
| private void | |
| public final SELF | |
| public SELF | Returns: this assertion object.the map with the given entries. other)Verifies that the actual map contains all entries of the given map, in any order. |
| public final SELF | Returns: this assertion object.the given entries. entriesVerifies that the actual map contains at least one of the given entries. |
| protected SELF | |
| public SELF | Returns: this assertion object.the given key to check. key, V the given value to check. value)Verifies that the actual map contains the given entry. |
| public final SELF | Returns: this assertions objectthe given entries. entriesVerifies that the actual map contains only the given entries and nothing else, in order. |
| public SELF | Returns: this assertions objectthe given map)Map with the expected entries to be found in actual.Same as |
| protected SELF | |
| public SELF | Returns: this assertions objectthe given map)Map with the expected entries to be found in actual.Same as |
| protected SELF | |
| public SELF | Returns: this assertions objectthe given key key)Verifies that the actual map contains the given key. |
| public final SELF | Returns: this assertions objectthe given keys keys)Verifies that the actual map contains the given keys. |
| protected SELF | |
| public final SELF | Returns: this assertions objectthe entries that should be in the actual map. entriesVerifies that the actual map contains only the given entries and nothing else, in any order. |
| protected SELF | |
| public final SELF | Returns: this assertions objectthe given keys that should be in the actual map. keys)Verifies that the actual map contains only the given keys and nothing else, in any order. |
| public SELF | Returns: this assertions objectthe given keys that should be in the actual map. keys)Verifies that the actual map contains only the given keys and nothing else, in any order. |
| protected SELF | |
| public SELF | Returns: this assertions objectthe value to look for. value)Verifies that the actual map contains the given value. |
| public final SELF | Returns: this assertions objectthe values to look for in the actual map. values)Verifies that the actual map contains the given values. |
| protected SELF | |
| public SELF | describedAs(Description
the new description to set. description)Overrides org. Implements org. |
| public SELF | describedAs(String
the new description to set. description, Object... optional parameter if description is a format String. args)Overrides default org. |
| public final SELF | Returns: this assertion object.the given entries. entriesVerifies that the actual map does not contain the given entries. |
| public SELF | Returns: this assertion object.key of the entry. key, V value of the entry. value)Verifies that the actual map does not contain the given entry. |
| protected SELF | |
| public SELF | Returns: this assertions objectthe given key key)Verifies that the actual map does not contain the given key. |
| public final SELF | Returns: this assertions objectthe given keys keys)Verifies that the actual map does not contain any of the given keys. |
| protected SELF | |
| public SELF | Returns: this assertions objectthe value that should not be in actual map. value)Verifies that the actual map does not contain the given value. |
| public SELF | doesNotHave(Condition<? super ACTUAL>
the given condition. condition)Overrides org. Implements org. |
| public SELF | doesNotHaveSameClassAs(Object
the object to check type against. other)Overrides org. Implements org. |
| private void | |
| public AbstractListAssert | Returns: a new assertion object whose object under test is the array containing the extracted map valuesthe keys used to get values from the map under test keys)
Deprecated
use
Extract the values of given keys from the map under test into an array, this new array becoming
the object under test.
extractingByKeys(Object[]) instead
|
| public AbstractObjectAssert | Returns: a newObjectAssert instance whose object under test is the extracted map valuethe key used to get value from the map under test key)
Deprecated
use
Extract the value of given key from the map under test, the extracted value becoming the new object under test.
extractingByKey(Object) instead
|
| public AbstractObjectAssert | Returns: a newObjectAssert instance whose object under test is the extracted map valuethe key used to get value from the map under test key)Extract the value of given key from the map under test, the extracted value becoming the new object under test. |
| public < the type of the resulting ASSERT extends AbstractAssertAssert | Returns: a new narrowedAssert instance whose object under test is the extracted map valuethe key used to get value from the map under test key, InstanceOfAssertFactory<?, ASSERT> the factory which verifies the type and creates the new assertFactory)AssertExtract the value of given key from the map under test, the extracted value becoming the new object under test. |
| public final AbstractListAssert | Returns: a new assertion object whose object under test is the array containing the extracted map valuesthe keys used to get values from the map under test keys)Extract the values of given keys from the map under test into an array, this new array becoming the object under test. |
| protected AbstractListAssert | |
| public AbstractListAssert | Returns: a new assertion object whose object under test is the list of values extractedthe extractor function to extract a value from an entry of the Map under test. extractor)Use the given |
| public final AbstractListAssert | Returns: a new assertion object whose object under test is the list of Tuples containing the extracted values.the extractor functions to extract values from an entry of the Map under test. extractors)Use the given |
| protected AbstractListAssert | |
| public AbstractListAssert | Returns: a new assertion object whose object under test is the array containing the extracted flattened map valuesthe keys used to get values from the map under test keys)Flatten the values of the given keys from the actual map under test into a new array, this new array becoming the object under test. |
| private static List | |
| public SELF | has(Condition<? super ACTUAL>
the given condition. condition)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.he given key to check. key, Condition<? super V> the given condition for check value. valueCondition)Verifies that the actual map contains a value for the given |
| public SELF | Returns: this assertion object.he given key to check. key, Consumer<? super V> the given requirements for check value. valueRequirements)Verifies that the actual map contains the value for given |
| public SELF | Returns: this assertion object.the condition for searching entry. entryCondition)Verifies that the actual map contains an entry satisfying the given |
| public SELF | Returns: this assertion object.the condition to be matched by the entry's key. keyCondition, Condition<? super V> the condition to be matched by the entry's value. valueCondition)Verifies that the actual map contains an entry with a key satisfying the given |
| public SELF | Returns: this assertion object.the condition to be matched by the entry's key. keyCondition)Verifies that the actual map contains an entry with a key satisfying the given |
| public SELF | hasSameClassAs(Object
the object to check type against. other)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the array to compare size with actual group. other)Implements org. |
| public SELF | Returns: this assertion object.the other)Iterable to compare size with actual group.Implements org. Iterable.
|
| public SELF | Returns: this assertion objectthe other)Map to compare size with actual mapVerifies that the actual map has the same size as the given |
| public SELF | Returns: this assertion object.the expected number of values in the expected)Map.Implements org. Map is equal to the given one.
|
| public SELF | Returns: this assertion object.the lower boundary compared to which actual size should be greater than or equal to. lowerBoundary, int the higher boundary compared to which actual size should be less than or equal to. higherBoundary)Implements org. Map is between the given boundaries (inclusive).
|
| public SELF | Returns: this assertion object.the given value to compare the size of boundary)actual to.Implements org. Map is greater than the boundary.
|
| public SELF | Returns: this assertion object.the given value to compare the size of boundary)actual to.Implements org. Map is greater than or equal to the boundary.
|
| public SELF | Returns: this assertion object.the given value to compare the size of boundary)actual to.Implements org. Map is less than the boundary.
|
| public SELF | Returns: this assertion object.the given value to compare the size of boundary)actual to.Implements org. Map is less than or equal to the boundary.
|
| public SELF | hasToString(String
the expected String description of actual. expectedToString)Overrides org. Implements org. actual.toString() is equal to the given String.
|
| public SELF | Returns: this assertion object.the condition to be matched by the entry's value. valueCondition)Verifies that the actual map contains an entry with a value satisfying the given |
| private AbstractObjectAssert | |
| public SELF | is(Condition<? super ACTUAL>
the given condition. condition)Overrides org. Implements org. |
| public void | |
| public SELF | isEqualTo(Object
the given value to compare the actual value to. expected)Overrides org. Implements org. |
| public SELF | isExactlyInstanceOf(Class<?>
the type to check the actual value against. type)Overrides org. Implements org. |
| public SELF | isIn(Iterable<?>
the given iterable to search the actual value in. values)Overrides org. Implements org. |
| public SELF | isIn(Object...
the given array to search the actual value in. values)Overrides org. Implements org. |
| public SELF | isInstanceOf(Class<?>
the type to check the actual value against. type)Overrides org. Implements org. |
| public SELF | isInstanceOfAny(Class<?>...
the types to check the actual value against. types)Overrides org. Implements org. |
| public SELF | isNot(Condition<? super ACTUAL>
the given condition. condition)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.Implements org. Map is not empty.
|
| public SELF | isNotEqualTo(Object
the given value to compare the actual value to. other)Overrides org. Implements org. |
| public SELF | isNotExactlyInstanceOf(Class<?>
the type to check the actual value against. type)Overrides org. Implements org. |
| public SELF | isNotIn(Iterable<?>
the given iterable to search the actual value in. values)Overrides org. Implements org. |
| public SELF | isNotIn(Object...
the given array to search the actual value in. values)Overrides org. Implements org. |
| public SELF | isNotInstanceOf(Class<?>
the type to check the actual value against. type)Overrides org. Implements org. |
| public SELF | isNotInstanceOfAny(Class<?>...
the types to check the actual value against. types)Overrides org. Implements org. |
| public SELF | isNotNull()
Overrides org. Implements org. null.
|
| public SELF | isNotOfAnyClassIn(Class<?>...
the types to check the actual value against. types)Overrides org. Implements org. |
| public SELF | isNotSameAs(Object
the given value to compare the actual value to. other)Overrides org. Implements org. |
| public void | isNullOrEmpty()
Implements org. Map is null or empty.
|
| public SELF | isOfAnyClassIn(Class<?>...
the types to check the actual value against. types)Overrides org. Implements org. |
| public SELF | isSameAs(Object
the given value to compare the actual value to. expected)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.Verifies that the actual map is unmodifiable, i.e. throws an |
| public SELF | Returns: this assertion object.the given requirements that each entry must not satisfy. entryRequirements)Verifies that no map entry satisfies the given |
| public SELF | overridingErrorMessage(String
the error message that will replace the default one provided by Assertj. newErrorMessage, Object... the args used to fill error message as in args)String#format(String, Object..Overrides org. |
| public AbstractMapSizeAssert | Returns: aAbstractMapSizeAssert to allow assertions on the number of key-value mappings in this mapReturns an |
| private Map. | |
| public SELF | usingComparator(Comparator<? super ACTUAL>
the comparator to use for the incoming assertion checks. customComparator)Overrides org. Implements org. |
| public SELF | usingComparator(Comparator<? super ACTUAL>
the comparator to use for the incoming assertion checks. customComparator, String comparator description to be used in assertion error messages customComparatorDescription)Overrides org. Implements org. |
| public SELF | usingDefaultComparator()
Overrides org. Implements org. |
| public SELF | usingDefaultElementComparator()
Implements org.
Deprecated
Custom element Comparator is not supported for MapEntry comparison.
Do not use this method.
|
| public SELF | usingElementComparator(Comparator<? super Map.
the comparator to use for incoming assertion checks. customComparator)Implements org.
Deprecated
Custom element Comparator is not supported for MapEntry comparison.
Do not use this method.
|
| public RecursiveAssertionAssert | Returns: A new instance ofRecursiveAssertionAssert built with a default RecursiveAssertionConfiguration.Overrides org. Asserts that the given predicate is met for all fields of the object under test recursively (but not the object itself). |
| public RecursiveAssertionAssert | Returns: A new instance ofRecursiveAssertionAssert built with a default RecursiveAssertionConfiguration.The recursion configuration described above. recursiveAssertionConfiguration)Overrides org. The same as |
| public RecursiveComparisonAssert | Returns: a newRecursiveComparisonAssert instanceOverrides org. RecursiveComparisonAssert,
Example:
|
| public RecursiveComparisonAssert | Returns: a newRecursiveComparisonAssert instance built with the given RecursiveComparisonConfiguration.the recursiveComparisonConfiguration)RecursiveComparisonConfiguration used in the chained isEqualTo assertion.Overrides org. usingRecursiveComparison() but allows to specify your own RecursiveComparisonConfiguration.
|
| public AbstractCollectionAssert | Returns: AnAbstractCollectionAssert to make collections assertion only on map values.Returns an Example
|
| public SELF | withFailMessage(String
the error message that will replace the default one provided by Assertj. newErrorMessage, Object... the args used to fill error message as in args)String#format(String, Object..Overrides org. AbstractAssert#overridingErrorMessage
You must set it before calling the assertion otherwise it is ignored as the failing assertion breaks the chained call by throwing an AssertionError. |
| public SELF | withThreadDumpOnError()
Overrides org. Implements org. System#err.
|