ComponentAssert
Deprecated
Assertion methods for Components.
To create an instance of this class, invoke assertThat
or assertThat
.
Deprecated
Use LithoAssertions which provides entry points to all Litho AssertJ helpers.
Functions
Link copied to clipboard
Avoid using this method, as an alternative, try invoking the code that causes the real state update in your test.
Link copied to clipboard
Link copied to clipboard
Verifies that the component contains only the given sub-components and nothing else, in order.
Link copied to clipboard
Assert that the given component contains the provided sub-component.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Assert that the given component does not contain the provided sub-component.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Inverse of hasVisibleDrawable
Inverse of hasVisibleDrawable.
Link copied to clipboard
Inverse of hasVisibleText .
Inverse of hasVisibleText.
Link copied to clipboard
Inverse of hasVisibleTextContaining.
Link copied to clipboard
Inverse of hasVisibleTextMatching.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Extract the sub components from the underlying Component, returning a ListAssert over it
Link copied to clipboard
Extract the sub components recursively from the underlying Component, returning a ListAssert over it.
Link copied to clipboard
Link copied to clipboard
Assert that any view in the given Component has the provided content description.
Link copied to clipboard
Assert that the given component has no sub-components.
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(property: KProperty1<T2, T1>, matcher: Matcher<T1>): ComponentAssert
Assert that a given Component has a property matching the provided matcher.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Verifies that the component contains the exact list of provided sub-components.
Link copied to clipboard
Link copied to clipboard
Assert that the view tag is present for the given index.
Link copied to clipboard
Assert that the given component contains the drawable provided.
Assert that the given component contains the drawable identified by the provided drawable resource id.
Link copied to clipboard
Assert that the given component has the exact text identified by resource id.
Assert that the given component has the exact text provided.
Link copied to clipboard
Assert that the given component contains the provided text.
Link copied to clipboard
Assert that the given component contains the provided pattern.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Assert that a given Component produces a non-null layout.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Avoid using this method.
Link copied to clipboard
Link copied to clipboard
Assert that a given Component renders to null, i.e.