public class TestImageConditions extends Object
TestImageSpec.| Constructor and Description |
|---|
TestImageConditions() |
| Modifier and Type | Method and Description |
|---|---|
static <any> |
imageWithDrawable(int resId)
Temporary workaround for the
TestImageSpec's drawableRes matcher problem with
Robolectric. |
public static <any> imageWithDrawable(int resId)
TestImageSpec's drawableRes matcher problem with
Robolectric.
Matcher that succeeds if a InspectableComponent has an image content that matches
the provided drawable resource id.
assertThat(c, mComponent)
.has(
deepSubComponentWith(c, TestImageConditions.imageWithDrawable(R.drawable.drawable_id)));