/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/ |
D | IsIterableContainingInOrder.java | 22 … protected boolean matchesSafely(Iterable<? extends E> iterable, Description mismatchDescription) { in matchesSafely() argument 23 final MatchSeries<E> matchSeries = new MatchSeries<E>(matchers, mismatchDescription); in matchesSafely() 40 private final Description mismatchDescription; field in IsIterableContainingInOrder.MatchSeries 43 public MatchSeries(List<Matcher<? super F>> matchers, Description mismatchDescription) { in MatchSeries() argument 44 this.mismatchDescription = mismatchDescription; in MatchSeries() 53 mismatchDescription.appendText("not matched: ").appendValue(item); in matches() 62 … mismatchDescription.appendText("no item was ").appendDescriptionOf(matchers.get(nextMatchIx)); in isFinished() 79 mismatchDescription.appendText("item " + nextMatchIx + ": "); in describeMismatch() 80 matcher.describeMismatch(item, mismatchDescription); in describeMismatch()
|
D | IsIterableContainingInAnyOrder.java | 22 protected boolean matchesSafely(Iterable<? extends T> items, Description mismatchDescription) { in matchesSafely() argument 23 final Matching<T> matching = new Matching<T>(matchers, mismatchDescription); in matchesSafely() 42 private final Description mismatchDescription; field in IsIterableContainingInAnyOrder.Matching 44 public Matching(Collection<Matcher<? super S>> matchers, Description mismatchDescription) { in Matching() argument 46 this.mismatchDescription = mismatchDescription; in Matching() 51 mismatchDescription.appendText("no match for: ").appendValue(item); in matches() 61 mismatchDescription in isFinished() 74 mismatchDescription.appendText("not matched: ").appendValue(item); in isMatched()
|
D | IsIterableContainingInRelativeOrder.java | 21 … protected boolean matchesSafely(Iterable<? extends E> iterable, Description mismatchDescription) { in matchesSafely() argument 22 …r<E> matchSeriesInRelativeOrder = new MatchSeriesInRelativeOrder<E>(matchers, mismatchDescription); in matchesSafely() 33 private final Description mismatchDescription; field in IsIterableContainingInRelativeOrder.MatchSeriesInRelativeOrder 37 …ic MatchSeriesInRelativeOrder(List<Matcher<? super F>> matchers, Description mismatchDescription) { in MatchSeriesInRelativeOrder() argument 38 this.mismatchDescription = mismatchDescription; in MatchSeriesInRelativeOrder() 59 … mismatchDescription.appendDescriptionOf(matchers.get(nextMatchIx)).appendText(" was not found"); in isFinished() 61 mismatchDescription.appendText(" after ").appendValue(lastMatchedItem); in isFinished()
|
D | IsArray.java | 32 public void describeMismatchSafely(T[] actual, Description mismatchDescription) { in describeMismatchSafely() argument 34 mismatchDescription.appendText("array length was ").appendValue(actual.length); in describeMismatchSafely() 39 mismatchDescription.appendText("element ").appendValue(i).appendText(" "); in describeMismatchSafely() 40 elementMatchers[i].describeMismatch(actual[i], mismatchDescription); in describeMismatchSafely()
|
D | IsEmptyIterable.java | 17 … public void describeMismatchSafely(Iterable<? extends E> iter, Description mismatchDescription) { in describeMismatchSafely() argument 18 mismatchDescription.appendValueList("[", ",", "]", iter); in describeMismatchSafely()
|
D | IsEmptyCollection.java | 20 …public void describeMismatchSafely(Collection<? extends E> item, Description mismatchDescription) { in describeMismatchSafely() argument 21 mismatchDescription.appendValue(item); in describeMismatchSafely()
|
D | IsArrayContaining.java | 32 public void describeMismatchSafely(T[] item, Description mismatchDescription) { in describeMismatchSafely() argument 33 super.describeMismatch(Arrays.asList(item), mismatchDescription); in describeMismatchSafely() local
|
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/ |
D | IsCollectionContaining.java | 21 … protected boolean matchesSafely(Iterable<? super T> collection, Description mismatchDescription) { in matchesSafely() argument 23 mismatchDescription.appendText("was empty"); in matchesSafely() 33 mismatchDescription.appendText("mismatches were: ["); in matchesSafely() 37 mismatchDescription.appendText(", "); in matchesSafely() 39 elementMatcher.describeMismatch(item, mismatchDescription); in matchesSafely() 42 mismatchDescription.appendText("]"); in matchesSafely()
|
D | Every.java | 15 … public boolean matchesSafely(Iterable<? extends T> collection, Description mismatchDescription) { in matchesSafely() argument 18 mismatchDescription.appendText("an item "); in matchesSafely() 19 matcher.describeMismatch(t, mismatchDescription); in matchesSafely()
|
D | SubstringMatcher.java | 26 public void describeMismatchSafely(String item, Description mismatchDescription) { in describeMismatchSafely() argument 27 mismatchDescription.appendText("was \"").appendText(item).appendText("\""); in describeMismatchSafely()
|
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/ |
D | TypeSafeDiagnosingMatcher.java | 25 protected abstract boolean matchesSafely(T item, Description mismatchDescription); in matchesSafely() argument 62 public final void describeMismatch(Object item, Description mismatchDescription) { in describeMismatch() argument 64 super.describeMismatch(item, mismatchDescription); in describeMismatch() 66 matchesSafely((T) item, mismatchDescription); in describeMismatch() local
|
D | DiagnosingMatcher.java | 16 public final void describeMismatch(Object item, Description mismatchDescription) { in describeMismatch() argument 17 matches(item, mismatchDescription); in describeMismatch() 20 protected abstract boolean matches(Object item, Description mismatchDescription); in matches() argument
|
D | TypeSafeMatcher.java | 53 protected void describeMismatchSafely(T item, Description mismatchDescription) { in describeMismatchSafely() argument 54 super.describeMismatch(item, mismatchDescription); in describeMismatchSafely()
|
/external/mockito/src/test/java/org/mockito/internal/hamcrest/ |
D | MatcherGenericTypeExtractorTest.java | 59 public void describeMismatch(Object item, Description mismatchDescription) {} in describeMismatch() argument 68 public void describeMismatch(Object item, Description mismatchDescription) {} in describeMismatch() argument 78 public void describeMismatch(Object item, Description mismatchDescription) {} in describeMismatch() argument 89 public void describeMismatch(Object item, Description mismatchDescription) {} in describeMismatch() argument 123 public void describeMismatch(Object item, Description mismatchDescription) { in findsGenericType()
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/object/ |
D | IsEventFrom.java | 23 public boolean matchesSafely(EventObject item, Description mismatchDescription) { in matchesSafely() argument 25 mismatchDescription.appendText("item type was " + item.getClass().getName()); in matchesSafely() 30 mismatchDescription.appendText("source was ").appendValue(item.getSource()); in matchesSafely()
|
D | IsCompatibleType.java | 20 public void describeMismatchSafely(Class<?> cls, Description mismatchDescription) { in describeMismatchSafely() argument 21 mismatchDescription.appendValue(cls.getName()); in describeMismatchSafely()
|
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/ |
D | FeatureMatcherTest.java | 31 StringDescription mismatchDescription = new StringDescription(); in doesNotThrowClassCastException() local 32 resultMatcher.describeMismatch(new ShouldNotMatch(), mismatchDescription); in doesNotThrowClassCastException() 33 assertEquals("was <ShouldNotMatch>", mismatchDescription.toString()); in doesNotThrowClassCastException()
|
D | AbstractMatcherTest.java | 19 Assert.fail(message + " because: '" + mismatchDescription(matcher, arg) + "'"); in assertMatches() 39 … Assert.assertEquals("Expected mismatch description", expected, mismatchDescription(matcher, arg)); in assertMismatchDescription() 60 public static <T> String mismatchDescription(Matcher<? super T> matcher, T arg) { in mismatchDescription() method in AbstractMatcherTest
|
D | CustomTypeSafeMatcherTest.java | 17 public void describeMismatchSafely(String item, Description mismatchDescription) { 18 mismatchDescription.appendText("an " + item);
|
D | TypeSafeMatcherTest.java | 18 public void describeMismatchSafely(String item, Description mismatchDescription) { in describeMismatchSafely() argument 19 mismatchDescription.appendText("The mismatch"); in describeMismatchSafely()
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/number/ |
D | IsNaN.java | 21 public void describeMismatchSafely(Double item, Description mismatchDescription) { in describeMismatchSafely() argument 22 mismatchDescription.appendText("was ").appendValue(item); in describeMismatchSafely()
|
D | IsCloseTo.java | 29 public void describeMismatchSafely(Double item, Description mismatchDescription) { in describeMismatchSafely() argument 30 mismatchDescription.appendValue(item) in describeMismatchSafely()
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/ |
D | IsEqualIgnoringCase.java | 30 public void describeMismatchSafely(String item, Description mismatchDescription) { in describeMismatchSafely() argument 31 mismatchDescription.appendText("was ").appendValue(item); in describeMismatchSafely()
|
D | StringContainsInOrder.java | 31 public void describeMismatchSafely(String item, Description mismatchDescription) { in describeMismatchSafely() argument 32 mismatchDescription.appendText("was \"").appendText(item).appendText("\""); in describeMismatchSafely()
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/comparator/ |
D | ComparatorMatcherBuilder.java | 84 public void describeMismatchSafely(T actual, Description mismatchDescription) { 85 mismatchDescription.appendValue(actual).appendText(" was ") 89 mismatchDescription.appendText(" when compared by ").appendValue(comparator);
|