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

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/
H A DHasResourceMatcher.java12 private int expectedResourceId; field in class:HasResourceMatcher
15 public HasResourceMatcher(int expectedResourceId) { argument
16 this.expectedResourceId = expectedResourceId;
27 return actualResourceId == expectedResourceId;
37 description.appendText("[" + expectedResourceId + "]");
42 public static Matcher<ImageView> hasResource(int expectedResourceId) { argument
43 return new HasResourceMatcher(expectedResourceId);
H A DImageViewHasDrawableMatcher.java13 private int expectedResourceId; field in class:ImageViewHasDrawableMatcher
16 public ImageViewHasDrawableMatcher(int expectedResourceId) { argument
17 this.expectedResourceId = expectedResourceId;
30 String expectedName = nameOrUnset(resourceLoader, expectedResourceId);
31 message = "[" + actualResourceId + " (" + actualName + ")] to equal [" + expectedResourceId + " (" + expectedName + ")]";
32 return actualResourceId == expectedResourceId;
46 public static <T extends ImageView> Matcher<T> hasDrawable(int expectedResourceId) { argument
47 return new ImageViewHasDrawableMatcher<T>(expectedResourceId);
H A DViewHasTextMatcher.java13 private int expectedResourceId; field in class:ViewHasTextMatcher
18 expectedResourceId = -1;
21 public ViewHasTextMatcher(int expectedResourceId) { argument
23 this.expectedResourceId = expectedResourceId;
32 if (expectedResourceId != -1) {
33 expected = actual.getContext().getResources().getString(expectedResourceId);

Completed in 98 milliseconds