Skip to content

net.natura.testcommons.matchers.withDrawable

Lucas de Souza da Conceição edited this page Jul 2, 2020 · 1 revision

withDrawable

fun withDrawable(@DrawableRes id: Int): TypeSafeMatcher<View>

Checks if the view is displaying a given drawable.

Example usage:

onView(withId(R.id.the_imageview)).check(matches(withDrawable(R.drawable.my_drawable)))

Parameters

id - The drawable's resource id

Clone this wiki locally