LithoComponentAssert

open class LithoComponentAssert : AbstractAssert<SELF, ACTUAL>

TODO: T106084343 deprecate currently existing usage of Component assert.

Properties

Link copied to clipboard
val info: WritableAssertionInfo

Functions

Link copied to clipboard
open fun as(description: String, args: Array<Any>): SELF
Link copied to clipboard
open fun asList(): AbstractListAssert<out Any, List<out Any>, Any, ObjectAssert<Any>>
Link copied to clipboard
open fun asString(): AbstractCharSequenceAssert<out Any, String>
Link copied to clipboard
open fun describedAs(description: String, args: Array<Any>): 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 equals(obj: Any): Boolean
Link copied to clipboard
open fun getWritableAssertionInfo(): WritableAssertionInfo
Link copied to clipboard
open fun has(condition: Condition<in ACTUAL>): SELF
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
Assert that a given Component has a property equaling the provided value.
Link copied to clipboard
open fun <T1, T2> hasPropsMatching(propsMatcherPairs: Array<Pair<KProperty1<T2, T1>, Matcher<T1>>>): LithoAssertions.LithoComponentAssert
Assert that a given Component has a property matching the provided matcher.
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
Assert that given {@Link Component} is equivalent to the provided one.
open fun isEquivalentTo(@Nullable other: Component, shouldCompareCommonProps: Boolean): LithoAssertions.LithoComponentAssert
Assert that given {@Link Component} is the same as the provided one including its props.
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 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 overridingErrorMessage(newErrorMessage: String, args: Array<Any>): SELF
Link copied to clipboard
open fun setCustomRepresentation(customRepresentation: Representation)
Link copied to clipboard
open fun usingComparator(customComparator: Comparator<in ACTUAL>): SELF
Link copied to clipboard
open fun usingDefaultComparator(): SELF
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