HomeSort by relevance Sort by last modified time
    Searched defs:mismatchDescription (Results 1 - 25 of 26) sorted by null

1 2

  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
IsArrayContaining.java 32 public void describeMismatchSafely(T[] item, Description mismatchDescription) {
33 super.describeMismatch(Arrays.asList(item), mismatchDescription);
IsArrayContainingInAnyOrder.java 29 public void describeMismatchSafely(E[] item, Description mismatchDescription) {
30 iterableMatcher.describeMismatch(Arrays.asList(item), mismatchDescription);
IsArrayContainingInOrder.java 30 public void describeMismatchSafely(E[] item, Description mismatchDescription) {
31 iterableMatcher.describeMismatch(asList(item), mismatchDescription);
IsIterableContainingInAnyOrder.java 22 protected boolean matchesSafely(Iterable<? extends T> items, Description mismatchDescription) {
23 final Matching<T> matching = new Matching<T>(matchers, mismatchDescription);
42 private final Description mismatchDescription;
44 public Matching(Collection<Matcher<? super S>> matchers, Description mismatchDescription) {
46 this.mismatchDescription = mismatchDescription;
51 mismatchDescription.appendText("no match for: ").appendValue(item);
61 mismatchDescription
74 mismatchDescription.appendText("not matched: ").appendValue(item);
IsIterableContainingInRelativeOrder.java 21 protected boolean matchesSafely(Iterable<? extends E> iterable, Description mismatchDescription) {
22 MatchSeriesInRelativeOrder<E> matchSeriesInRelativeOrder = new MatchSeriesInRelativeOrder<E>(matchers, mismatchDescription);
33 private final Description mismatchDescription;
37 public MatchSeriesInRelativeOrder(List<Matcher<? super F>> matchers, Description mismatchDescription) {
38 this.mismatchDescription = mismatchDescription;
59 mismatchDescription.appendDescriptionOf(matchers.get(nextMatchIx)).appendText(" was not found");
61 mismatchDescription.appendText(" after ").appendValue(lastMatchedItem);
IsIterableContainingInOrder.java 22 protected boolean matchesSafely(Iterable<? extends E> iterable, Description mismatchDescription) {
23 final MatchSeries<E> matchSeries = new MatchSeries<E>(matchers, mismatchDescription);
40 private final Description mismatchDescription;
43 public MatchSeries(List<Matcher<? super F>> matchers, Description mismatchDescription) {
44 this.mismatchDescription = mismatchDescription;
53 mismatchDescription.appendText("not matched: ").appendValue(item);
62 mismatchDescription.appendText("no item was ").appendDescriptionOf(matchers.get(nextMatchIx));
79 mismatchDescription.appendText("item " + nextMatchIx + ": ");
80 matcher.describeMismatch(item, mismatchDescription);
    [all...]
  /external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/
FeatureMatcherTest.java 31 StringDescription mismatchDescription = new StringDescription();
32 resultMatcher.describeMismatch(new ShouldNotMatch(), mismatchDescription);
33 assertEquals("was <ShouldNotMatch>", mismatchDescription.toString());
AbstractMatcherTest.java 19 Assert.fail(message + " because: '" + mismatchDescription(matcher, arg) + "'");
39 Assert.assertEquals("Expected mismatch description", expected, mismatchDescription(matcher, arg));
60 public static <T> String mismatchDescription(Matcher<? super T> matcher, T arg) {
  /frameworks/support/compat/src/androidTest/java/android/support/v4/testutils/
TestUtils.java 78 String mismatchDescription = failMessagePrefix
87 throw new RuntimeException(mismatchDescription);
89 fail(mismatchDescription);
  /frameworks/support/viewpager/src/androidTest/java/android/support/v4/testutils/
TestUtils.java 78 String mismatchDescription = failMessagePrefix
87 throw new RuntimeException(mismatchDescription);
89 fail(mismatchDescription);
  /cts/tests/tests/view/src/android/view/cts/util/
DrawingUtils.java 80 String mismatchDescription = failMessagePrefix
91 Assert.fail(mismatchDescription);
  /prebuilts/misc/common/robolectric/3.1.1/lib/
hamcrest-library-1.3.jar 
hamcrest-core-1.3.jar 
  /prebuilts/misc/common/robolectric/3.4.2/lib/
hamcrest-library-1.3.jar 
hamcrest-core-1.3.jar 
  /prebuilts/misc/common/robolectric/3.5.1/lib/
hamcrest-library-1.3.jar 
hamcrest-core-1.3.jar 
  /prebuilts/misc/common/robolectric/3.6.1/lib/
hamcrest-library-1.3.jar 
hamcrest-core-1.3.jar 
  /prebuilts/tools/common/m2/repository/org/hamcrest/hamcrest-library/1.3/
hamcrest-library-1.3.jar 
  /cts/tests/tests/widget/src/android/widget/cts/util/
TestUtils.java 229 String mismatchDescription = failMessagePrefix
237 throw new RuntimeException(mismatchDescription);
239 Assert.fail(mismatchDescription);
262 String mismatchDescription = failMessagePrefix
269 throw new RuntimeException(mismatchDescription);
271 Assert.fail(mismatchDescription);
  /frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/
TestUtils.java 160 String mismatchDescription = failMessagePrefix
167 throw new RuntimeException(mismatchDescription);
169 fail(mismatchDescription);
221 String mismatchDescription = failMessagePrefix
228 throw new RuntimeException(mismatchDescription);
230 fail(mismatchDescription);
  /prebuilts/devtools/tools/lib/
hamcrest-core-1.3.jar 
  /prebuilts/tools/common/m2/repository/org/hamcrest/hamcrest-core/1.3/
hamcrest-core-1.3.jar 
  /prebuilts/misc/common/android-support-test/espresso/
espresso_contrib_release_no_deps.jar 

Completed in 530 milliseconds

1 2