Objects.
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private TypeComparators |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SELF | as(Description
the new description to set. description)Overrides default org. |
| public SELF | as(String
the new description to set. description, Object... optional parameter if description is a format String. args)Overrides default org. |
| public < the expected value type the given T> SELFmethod returns. | Returns: this assertion object.the value the object under test method's call should not return. expected, Function<ACTUAL, T> Function used to acquire the value to test from the object under test. Must not be nullVerifies that the object under test does not return the given expected value from the given |
| public AbstractListAssert | Returns: a new assertion object whose object under test is the list containing the extracted properties/fields valuesthe properties/fields to extract from the initial object under test propertiesOrFields)Extracts the values of given fields/properties from the object under test into a list, this new list becoming the object under test. |
| public AbstractObjectAssert | Returns: a newObjectAssert instance whose object under test is the extracted property/field valuethe property/field to extract from the initial object under test propertyOrField)Extracts the value of given field/property from the object 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 property/field valuethe property/field to extract from the initial object under test propertyOrField, InstanceOfAssertFactory<?, ASSERT> the factory which verifies the type and creates the new assertFactory)AssertExtracts the value of given field/property from the object 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 list containing the extracted valuesthe extractor functions to extract values from the Object under test. extractors)Uses the given |
| public < the expected extracted value type. T> AbstractObjectAssert | Returns: a newObjectAssert instance whose object under test is the extracted valuethe extractor function used to extract the value from the object under test. extractor)Uses the given |
| public < the expected extracted value type T, the type of the resulting ASSERT extends AbstractAssertAssert | Returns: a new narrowedAssert instance whose object under test is the extracted valuethe extractor function used to extract the value from the object under test extractor, InstanceOfAssertFactory<?, ASSERT> the factory which verifies the type and creates the new assertFactory)AssertUses the given |
| protected AbstractListAssert | |
| private Objects | |
| protected TypeComparators | |
| public SELF | Returns: this assertion object.Asserts that the actual object has only null fields or properties. |
| public SELF | Returns: this assertion object.properties/fields that won't be checked for not being null. propertiesOrFieldsToIgnore)Asserts that the actual object has only null fields or properties except for the given ones (inherited ones are taken into account). |
| public SELF | Returns: this assertion object.the field/property name to check name)Asserts that the actual object has the specified field or property. |
| public SELF | Returns: this assertion object.the field/property name to check name, Object the field/property expected value value)Asserts that the actual object has the specified field or property with the given value. |
| public SELF | Returns: this assertion object.Asserts that the actual object has no null fields or properties (inherited ones are taken into account). |
| public SELF | Returns: this assertion object.properties/fields that won't be checked for null. propertiesOrFieldsToIgnore)Asserts that the actual object has no null fields or properties except for the given ones (inherited ones are taken into account). |
| public SELF | Returns: this assertion object.the expected field names actual should have expectedFieldNames)Asserts that the actual object has only the specified fields and nothing else. |
| public SELF | Returns: this assertions objectthe object to compare other)actual to.
Deprecated
Use the recursive comparison by calling
usingRecursiveComparison().
|
| public SELF | Returns: this assertion object.the object to compare other)actual to.
Deprecated
Prefer calling
usingRecursiveComparison() for comparing objects field by field as it offers more flexibility, better reporting and an easier to use API.
|
| public SELF | Returns: this assertion object.the object to compare other, String... actual to.properties/fields used in comparison. propertiesOrFieldsUsedInComparison)
Deprecated
Use the recursive comparison by calling
usingRecursiveComparison() and specify the fields to ignore.
|
| public SELF | Returns: this assertion object.the object to compare other, String... actual to.ignored properties/fields to ignore in comparison. propertiesOrFieldsToIgnore)
Deprecated
Use the recursive comparison by calling
usingRecursiveComparison() and chain with
ignoringFields(String..
|
| public SELF | Returns: this assertion object.the object to compare other)actual to.
Deprecated
Use the recursive comparison by calling
usingRecursiveComparison() and chain with
ignoringExpectedNullFields().
|
| protected <T> AbstractObjectAssert | |
| public < the expected value type the given T> SELFmethod returns. | Returns: this assertion object.the value the object under test method's call should return. expected, Function<ACTUAL, T> Function used to acquire the value to test from the object under test. Must not be nullVerifies that the object under test returns the given expected value from the given |
| public < the type of values to compare. T> SELF | Returns: this assertions objectthe comparator, String... Comparator to usethe names of the properties and/or fields the comparator should be used for propertiesOrFields)Allows to set a specific comparator to compare properties or fields with the given names. |
| public < the type of objects that the comparator should be used for T> SELF | Returns: this assertions objectthe comparator, Class<T> Comparator to usethe type)Class of the type the comparator should be used forAllows to set a specific comparator to compare properties or fields with the given type. |
| 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. isEqualTo assertion.
|
| 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.
|
| pack-priv SELF | withAssertionState(AbstractAssert<SELF extends AbstractAssert<SELF, ACTUAL>, ACTUAL> assertInstance)
Overrides org. |
| pack-priv SELF | |
| pack-priv SELF |