ObjectContentAssert

open class ObjectContentAssert<A> : AbstractObjectAssert<SELF, ACTUAL>

AssertJ Assert for ObjectContent.

Author

Phillip Webb

Since

1.4.0

Parameters

<A>

the actual type

Properties

Link copied to clipboard
open var info: WritableAssertionInfo

Functions

Link copied to clipboard
open fun as(description: Description): SELF
Link copied to clipboard
open fun asArray(): AbstractObjectArrayAssert<out Any, Any>
Verifies that the actual value is an array, and returns an array assertion, to allow chaining of array-specific assertions from this call.
Link copied to clipboard
open fun <ASSERT : AbstractAssert<out Any, out Any>?> asInstanceOf(instanceOfAssertFactory: InstanceOfAssertFactory<out Any, ASSERT>): ASSERT
Link copied to clipboard
open fun asList(): AbstractListAssert<out Any, List<out Any>, Any, ObjectAssert<Any>>
Link copied to clipboard
open fun asMap(): AbstractMapAssert<out Any, out Any, Any, Any>
Verifies that the actual value is a map, and returns a map assertion, to allow chaining of map-specific assertions from this call.
Link copied to clipboard
open fun asString(): AbstractStringAssert<out Any>
abstract fun asString(): AbstractCharSequenceAssert<out Any, String>
Link copied to clipboard
open fun describedAs(description: Description): SELF
Link copied to clipboard
Link copied to clipboard
open fun doesNotHave(condition: Condition<in ACTUAL>): SELF
Link copied to clipboard
open fun doesNotHaveSameClassAs(other: Any): SELF
Link copied to clipboard
open fun doesNotHaveSameHashCodeAs(other: Any): SELF
Link copied to clipboard
open fun doesNotHaveToString(otherToString: String): SELF
Link copied to clipboard
open fun <T> doesNotReturn(expected: T, from: (ACTUAL) -> T): SELF
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun extracting(propertyOrField: String): AbstractObjectAssert<out Any, out Any>
open fun extracting(propertiesOrFields: Array<String>): AbstractListAssert<out Any, List<out Any>, Any, ObjectAssert<Any>>
open fun <T> extracting(extractor: (in ACTUAL) -> T): AbstractObjectAssert<out Any, T>
open fun <ASSERT : AbstractAssert<out Any, out Any>?> extracting(propertyOrField: String, assertFactory: InstanceOfAssertFactory<out Any, ASSERT>): ASSERT
Link copied to clipboard
open fun getWritableAssertionInfo(): WritableAssertionInfo
Link copied to clipboard
open fun has(condition: Condition<in ACTUAL>): SELF
Link copied to clipboard
Link copied to clipboard
open fun hasAllNullFieldsOrPropertiesExcept(propertiesOrFieldsToIgnore: Array<String>): SELF
Link copied to clipboard
open fun hasFieldOrProperty(name: String): SELF
Link copied to clipboard
open fun hasFieldOrPropertyWithValue(name: String, value: Any): SELF
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open fun hasNoNullFieldsOrPropertiesExcept(propertiesOrFieldsToIgnore: Array<String>): SELF
Link copied to clipboard
open fun hasOnlyFields(expectedFieldNames: Array<String>): SELF
Link copied to clipboard
open fun hasSameClassAs(other: Any): SELF
Link copied to clipboard
open fun hasSameHashCodeAs(other: Any): SELF
Link copied to clipboard
open fun hasToString(expectedToString: String): SELF
Link copied to clipboard
open fun is(condition: Condition<in ACTUAL>): SELF
Link copied to clipboard
open fun isEqualTo(expected: Any): SELF
Link copied to clipboard
open fun isEqualToComparingFieldByField(other: Any): SELF
Link copied to clipboard
open fun isEqualToComparingOnlyGivenFields(other: Any, propertiesOrFieldsUsedInComparison: Array<String>): SELF
Link copied to clipboard
open fun isEqualToIgnoringGivenFields(other: Any, propertiesOrFieldsToIgnore: Array<String>): SELF
Link copied to clipboard
open fun isEqualToIgnoringNullFields(other: Any): SELF
Link copied to clipboard
open fun isExactlyInstanceOf(type: Class<out Any>): SELF
Link copied to clipboard
open fun isIn(values: Array<Any>): SELF
Link copied to clipboard
open fun isInstanceOf(type: Class<out Any>): SELF
Link copied to clipboard
open fun isInstanceOfAny(types: Array<Class<out Any>>): SELF
Link copied to clipboard
open fun <T> isInstanceOfSatisfying(type: Class<T>, requirements: Consumer<T>): SELF
Link copied to clipboard
open fun isNot(condition: Condition<in ACTUAL>): SELF
Link copied to clipboard
open fun isNotEqualTo(other: Any): SELF
Link copied to clipboard
open fun isNotExactlyInstanceOf(type: Class<out Any>): SELF
Link copied to clipboard
open fun isNotIn(values: Array<Any>): SELF
Link copied to clipboard
open fun isNotInstanceOf(type: Class<out Any>): SELF
Link copied to clipboard
open fun isNotInstanceOfAny(types: Array<Class<out Any>>): SELF
Link copied to clipboard
open fun isNotNull(): SELF
Link copied to clipboard
open fun isNotOfAnyClassIn(types: Array<Class<out Any>>): SELF
Link copied to clipboard
open fun isNotSameAs(other: Any): SELF
Link copied to clipboard
open fun isNull()
Link copied to clipboard
open fun isOfAnyClassIn(types: Array<Class<out Any>>): SELF
Link copied to clipboard
open fun isSameAs(expected: Any): SELF
Link copied to clipboard
open fun matches(predicate: Predicate<in ACTUAL>): SELF
Link copied to clipboard
open fun overridingErrorMessage(newErrorMessage: String, args: Array<Any>): SELF
Link copied to clipboard
open fun <T> returns(expected: T, from: (ACTUAL) -> T): SELF
Link copied to clipboard
open fun satisfies(condition: Condition<in ACTUAL>): SELF
Link copied to clipboard
fun satisfiesAnyOf(assertions: Array<Consumer<in ACTUAL>>): SELF
Link copied to clipboard
open fun setCustomRepresentation(customRepresentation: Representation)
Link copied to clipboard
open fun setDescriptionConsumer(descriptionConsumer: Consumer<Description>)
Link copied to clipboard
open fun setPrintAssertionsDescription(printAssertionsDescription: Boolean)
Link copied to clipboard
open fun usingComparator(customComparator: Comparator<in ACTUAL>): SELF
Link copied to clipboard
open fun <T> usingComparatorForFields(comparator: Comparator<T>, propertiesOrFields: Array<String>): SELF
Link copied to clipboard
open fun <T> usingComparatorForType(comparator: Comparator<in T>, type: Class<T>): SELF
Link copied to clipboard
open fun usingDefaultComparator(): SELF
Link copied to clipboard
open fun usingRecursiveAssertion(): RecursiveAssertionAssert
Link copied to clipboard
open fun usingRecursiveComparison(): RecursiveComparisonAssert<out Any>
Link copied to clipboard
open fun withFailMessage(newErrorMessage: String, args: Array<Any>): SELF
Link copied to clipboard
open fun withRepresentation(representation: Representation): SELF
Link copied to clipboard
open fun withThreadDumpOnError(): SELF