public class LithoViewAssert
extends <any>
LithoView
s.
To create an instance of this class, invoke
.
Alternatively, use assertThat(LithoView)
LithoAssertions
which provides entry points to
all Litho AssertJ helpers.
Modifier and Type | Class and Description |
---|---|
static class |
LithoViewAssert.OccurrenceCount |
Modifier and Type | Method and Description |
---|---|
static LithoViewAssert |
assertThat(LithoView actual) |
LithoViewAssert |
containsTestKey(String testKey) |
LithoViewAssert |
containsTestKey(String testKey,
LithoViewAssert.OccurrenceCount count) |
LithoViewAssert |
doesNotContainTestKey(String testKey) |
LithoViewAssert |
doesNotHaveVisibleDrawable(Drawable drawable)
Inverse of
hasVisibleDrawable(Drawable) |
LithoViewAssert |
hasContentDescription(String contentDescription)
Assert that any view in the given Component has the provided content
description.
|
LithoViewAssert |
hasMeasuredHeightOf(int height)
Assert that the LithoView under test has the provided measured height.
|
LithoViewAssert |
hasMeasuredWidthOf(int width)
Assert that the LithoView under test has the provided measured width.
|
LithoViewAssert |
hasViewTag(int tagId,
Object tagValue)
Assert that the view tag is present for the given index.
|
LithoViewAssert |
hasVisibleDrawable(Drawable drawable)
Assert that the given component contains the drawable provided.
|
LithoViewAssert |
hasVisibleDrawable(int drawableRes)
Assert that the given component contains the drawable identified by the provided drawable
resource id.
|
LithoViewAssert |
hasVisibleText(String text)
Assert that the given component has the exact text provided.
|
static LithoViewAssert.OccurrenceCount |
once() |
static LithoViewAssert.OccurrenceCount |
times(int i) |
public static LithoViewAssert assertThat(LithoView actual)
public LithoViewAssert containsTestKey(String testKey)
public LithoViewAssert containsTestKey(String testKey, LithoViewAssert.OccurrenceCount count)
public LithoViewAssert doesNotContainTestKey(String testKey)
public LithoViewAssert hasContentDescription(String contentDescription)
public LithoViewAssert hasVisibleDrawable(@DrawableRes int drawableRes)
public LithoViewAssert hasVisibleDrawable(Drawable drawable)
public LithoViewAssert doesNotHaveVisibleDrawable(Drawable drawable)
hasVisibleDrawable(Drawable)
public LithoViewAssert hasVisibleText(String text)
public LithoViewAssert hasMeasuredWidthOf(int width)
public LithoViewAssert hasMeasuredHeightOf(int height)
public LithoViewAssert hasViewTag(int tagId, Object tagValue)
tagId
- Index of the view tag.tagValue
- View tag value.public static LithoViewAssert.OccurrenceCount times(int i)
public static LithoViewAssert.OccurrenceCount once()