Skip to content

Commit e8aacbf

Browse files
committed
Updated return type of hasDrawable method to Matcher<View>
1 parent 7d531ec commit e8aacbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/espresso/IntentsAdvancedSample/app/src/androidTest/java/com/example/android/testing/espresso/intents/AdvancedSample/ImageViewHasDrawableMatcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@
2121
import android.widget.ImageView;
2222

2323
import org.hamcrest.Description;
24+
import org.hamcrest.Matcher;
2425

2526
/**
2627
* A Matcher for Espresso that checks if an ImageView has a drawable applied to it.
2728
*/
2829
public class ImageViewHasDrawableMatcher {
2930

30-
public static BoundedDiagnosingMatcher<View, ImageView> hasDrawable() {
31+
public static Matcher<View> hasDrawable() {
3132
return new BoundedDiagnosingMatcher<View, ImageView>(ImageView.class) {
3233
@Override
3334
protected void describeMoreTo(Description description) {

0 commit comments

Comments
 (0)