Litho View Assert
Assertion methods for LithoViews.
To create an instance of this class, invoke assertThat.
Alternatively, use LegacyLithoAssertions which provides entry points to all Litho AssertJ helpers.
Types
Functions
Link copied to clipboard
Link copied to clipboard
Assert that the LithoView under test has the provided Component classes in the Component Tree hierarchy
Link copied to clipboard
Assert that the LithoView has a direct component of type clazz
Link copied to clipboard
Assert that the LithoView under test has the provided Component class in the Component Tree hierarchy given number of times
Link copied to clipboard
Assert that the LithoView under test has the provided Component class once in the Component Tree hierarchy.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Assert that the LithoView under test does not contain the provided Component classes in the Component Tree hierarchy
Link copied to clipboard
Assert that the LithoView does not have a direct component of type clazz
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Inverse of hasVisibleDrawable
Link copied to clipboard
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
Asserts that the LithoView contains a Component satisfying the given condition at any level of the hierarchy
open fun <T1, T2> hasAnyMatchingComponent(kClass: KClass, propsValuePairs: Array<Pair<KProperty1<T2, T1>, T1>>): LithoViewAssert
Asserts that the LithoView contains a Component with given props at any level of the hierarchy.
Link copied to clipboard
open fun <T2, T1> hasAnyMatchingComponentWithMatcher(kClass: KClass, propsMatcherPairs: Array<Pair<KProperty1<T2, T1>, Matcher<T1>>>): LithoViewAssert
Asserts that the LithoView contains a Component with props that matches given matcher at any level of the hierarchy
Link copied to clipboard
Assert that any view in the given Component has the provided content description.
Link copied to clipboard
Asserts that the LithoView will render Component as a direct children of the root satisfying the given condition.
open fun <T1, T2> hasDirectMatchingComponent(kClass: KClass, propsValuePairs: Array<Pair<KProperty1<T2, T1>, T1>>): LithoViewAssert
Asserts that the LithoView contains a direct Component with given props
Link copied to clipboard
open fun <T2, T1> hasDirectMatchingComponentWithMatcher(kClass: KClass, propsMatcherPairs: Array<Pair<KProperty1<T2, T1>, Matcher<T1>>>): LithoViewAssert
Asserts that the LithoView contains a Component with props that matches given matcher at any level of the hierarchy
Link copied to clipboard
Assert that the LithoView under test has the provided measured height.
Link copied to clipboard
Assert that the LithoView under test has the provided measured width.
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Assert that the LithoView will not render content, the root component will either return null or a child with width and height equal to 0
Link copied to clipboard
Assert that the LithoView will render content, the root component won't return null nor a child with height and width equal to 0
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard