Home
last modified time | relevance | path

Searched refs:expectedResourceId (Results 1 – 3 of 3) sorted by relevance

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/
DImageViewHasDrawableMatcher.java13 private int expectedResourceId; field in ImageViewHasDrawableMatcher
16 public ImageViewHasDrawableMatcher(int expectedResourceId) { in ImageViewHasDrawableMatcher() argument
17 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() argument
47 return new ImageViewHasDrawableMatcher<T>(expectedResourceId); in hasDrawable()
DHasResourceMatcher.java12 private int expectedResourceId; field in HasResourceMatcher
15 public HasResourceMatcher(int expectedResourceId) { in HasResourceMatcher() argument
16 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() argument
43 return new HasResourceMatcher(expectedResourceId); in hasResource()
DViewHasTextMatcher.java13 private int expectedResourceId; field in ViewHasTextMatcher
18 expectedResourceId = -1; in ViewHasTextMatcher()
21 public ViewHasTextMatcher(int expectedResourceId) { in ViewHasTextMatcher() argument
23 this.expectedResourceId = expectedResourceId; in ViewHasTextMatcher()
32 if (expectedResourceId != -1) { in matchesSafely()
33 expected = actual.getContext().getResources().getString(expectedResourceId); in matchesSafely()