Created
October 22, 2019 02:23
-
-
Save cdmunoz/bfd9261090d7c3ae95640eef1a9ebe8a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun hasImageSet(): BoundedMatcher<View, ImageView> { | |
| return object : BoundedMatcher<View, ImageView>(ImageView::class.java) { | |
| override fun describeTo(description: Description) { | |
| description.appendText("has image set.") | |
| } | |
| override fun matchesSafely(imageView: ImageView): Boolean { | |
| return imageView.background != null | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment