Searched refs:expectedResourceId (Results 1 – 3 of 3) sorted by relevance
13 private int expectedResourceId; field in ImageViewHasDrawableMatcher16 public ImageViewHasDrawableMatcher(int expectedResourceId) { in ImageViewHasDrawableMatcher() argument17 this.expectedResourceId = expectedResourceId; in ImageViewHasDrawableMatcher()30 String expectedName = nameOrUnset(resourceLoader, expectedResourceId); in matchesSafely()31 …message = "[" + actualResourceId + " (" + actualName + ")] to equal [" + expectedResourceId + " ("… in matchesSafely()32 return actualResourceId == expectedResourceId; in matchesSafely()46 public static <T extends ImageView> Matcher<T> hasDrawable(int expectedResourceId) { in hasDrawable() argument47 return new ImageViewHasDrawableMatcher<T>(expectedResourceId); in hasDrawable()
12 private int expectedResourceId; field in HasResourceMatcher15 public HasResourceMatcher(int expectedResourceId) { in HasResourceMatcher() argument16 this.expectedResourceId = expectedResourceId; in HasResourceMatcher()27 return actualResourceId == expectedResourceId; in matchesSafely()37 description.appendText("[" + expectedResourceId + "]"); in describeTo()42 public static Matcher<ImageView> hasResource(int expectedResourceId) { in hasResource() argument43 return new HasResourceMatcher(expectedResourceId); in hasResource()
13 private int expectedResourceId; field in ViewHasTextMatcher18 expectedResourceId = -1; in ViewHasTextMatcher()21 public ViewHasTextMatcher(int expectedResourceId) { in ViewHasTextMatcher() argument23 this.expectedResourceId = expectedResourceId; in ViewHasTextMatcher()32 if (expectedResourceId != -1) { in matchesSafely()33 expected = actual.getContext().getResources().getString(expectedResourceId); in matchesSafely()