Home
last modified time | relevance | path

Searched refs:appendText (Results 1 – 25 of 68) sorted by relevance

123

/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
DSubstringMatcher.java27 mismatchDescription.appendText("was \"").appendText(item).appendText("\""); in describeMismatchSafely()
32 description.appendText("a string ") in describeTo()
33 .appendText(relationship) in describeTo()
34 .appendText(" ") in describeTo()
37 description.appendText(" ignoring case"); in describeTo()
DIsCollectionContaining.java23 mismatchDescription.appendText("was empty"); in matchesSafely()
33 mismatchDescription.appendText("mismatches were: ["); in matchesSafely()
37 mismatchDescription.appendText(", "); in matchesSafely()
42 mismatchDescription.appendText("]"); in matchesSafely()
53 .appendText("a collection containing ") in describeTo()
DIsInstanceOf.java42 mismatch.appendText("null"); in matches()
47 mismatch.appendValue(item).appendText(" is a " + item.getClass().getName()); in matches()
56 description.appendText("an instance of ").appendText(expectedClass.getName()); in describeTo()
DIsSame.java25 description.appendText("sameInstance(") in describeTo()
27 .appendText(")"); in describeTo()
DEvery.java18 mismatchDescription.appendText("an item "); in matchesSafely()
28 description.appendText("every item is ").appendDescriptionOf(matcher); in describeTo()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/comparator/
DComparatorMatcherBuilder.java85 mismatchDescription.appendValue(actual).appendText(" was ")
86 .appendText(asText(comparator.compare(actual, expected)))
87 .appendText(" ").appendValue(expected);
89 mismatchDescription.appendText(" when compared by ").appendValue(comparator);
95 description.appendText("a value ").appendText(asText(minCompare));
97 description.appendText(" or ").appendText(asText(maxCompare));
99 description.appendText(" ").appendValue(expected);
101 description.appendText(" when compared by ").appendValue(comparator);
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/
DStringContainsInOrder.java32 mismatchDescription.appendText("was \"").appendText(item).appendText("\""); in describeMismatchSafely()
37 description.appendText("a string containing ") in describeTo()
39 .appendText(" in order"); in describeTo()
DIsEqualIgnoringWhiteSpace.java33 mismatchDescription.appendText("was ").appendText(stripSpace(item)); in describeMismatchSafely()
38 description.appendText("equalToIgnoringWhiteSpace(") in describeTo()
40 .appendText(")"); in describeTo()
DIsEqualIgnoringCase.java31 mismatchDescription.appendText("was ").appendValue(item); in describeMismatchSafely()
36 description.appendText("equalToIgnoringCase(") in describeTo()
38 .appendText(")"); in describeTo()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/object/
DIsEventFrom.java25 mismatchDescription.appendText("item type was " + item.getClass().getName()); in matchesSafely()
30 mismatchDescription.appendText("source was ").appendValue(item.getSource()); in matchesSafely()
43 description.appendText("an event of type ") in describeTo()
44 .appendText(eventClass.getName()) in describeTo()
45 .appendText(" from ") in describeTo()
DIsCompatibleType.java26 description.appendText("type < ").appendText(type.getName()); in describeTo()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
DIsIterableContainingInAnyOrder.java35 description.appendText("iterable with items ") in describeTo()
37 .appendText(" in any order"); in describeTo()
51 mismatchDescription.appendText("no match for: ").appendValue(item); in matches()
62 .appendText("no item matches: ").appendList("", ", ", "", matchers) in isFinished()
63 .appendText(" in ").appendValueList("[", ", ", "]", items); in isFinished()
74 mismatchDescription.appendText("not matched: ").appendValue(item); in isMatched()
DIsIterableContainingInRelativeOrder.java28 …description.appendText("iterable containing ").appendList("[", ", ", "]", matchers).appendText(" i… in describeTo()
59 … mismatchDescription.appendDescriptionOf(matchers.get(nextMatchIx)).appendText(" was not found"); in isFinished()
61 mismatchDescription.appendText(" after ").appendValue(lastMatchedItem); in isFinished()
DIsMapContaining.java34 mismatchDescription.appendText("map was ").appendValueList("[", ", ", "]", map.entrySet()); in describeMismatchSafely()
39 description.appendText("map containing [") in describeTo()
41 .appendText("->") in describeTo()
43 .appendText("]"); in describeTo()
DIsIterableContainingInOrder.java35 description.appendText("iterable containing ").appendList("[", ", ", "]", matchers); in describeTo()
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()
DIsArray.java34 mismatchDescription.appendText("array length was ").appendValue(actual.length); in describeMismatchSafely()
39 mismatchDescription.appendText("element ").appendValue(i).appendText(" "); in describeMismatchSafely()
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
DFeatureMatcher.java42 mismatch.appendText(featureName).appendText(" "); in matchesSafely()
51 description.appendText(featureDescription).appendText(" ") in describeTo()
DTypeSafeMatcher.java76 description.appendText("was a ") in describeMismatch()
77 .appendText(item.getClass().getName()) in describeMismatch()
78 .appendText(" (") in describeMismatch()
80 .appendText(")"); in describeMismatch()
DMatcherAssert.java12 description.appendText(reason) in assertThat()
13 .appendText("\nExpected: ") in assertThat()
15 .appendText("\n but: "); in assertThat()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/number/
DIsCloseTo.java31 .appendText(" differed by ") in describeMismatchSafely()
33 .appendText(" more than delta ") in describeMismatchSafely()
39 description.appendText("a numeric value within ") in describeTo()
41 .appendText(" of ") in describeTo()
DBigDecimalCloseTo.java28 .appendText(" differed by ") in describeMismatchSafely()
30 .appendText(" more than delta ") in describeMismatchSafely()
36 description.appendText("a numeric value within ") in describeTo()
38 .appendText(" of ") in describeTo()
DIsNaN.java22 mismatchDescription.appendText("was ").appendValue(item); in describeMismatchSafely()
27 description.appendText("a double value of NaN"); in describeTo()
/external/junit/src/main/java/org/junit/internal/
DAssumptionViolatedException.java93 description.appendText(fAssumption); in describeTo()
99 description.appendText(": "); in describeTo()
102 description.appendText("got: "); in describeTo()
106 description.appendText(", expected: "); in describeTo()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/xml/
DHasXPath.java68 description.appendText("an XML document with XPath ").appendText(xpathString); in describeTo()
70 description.appendText(" ").appendDescriptionOf(valueMatcher); in describeTo()
78 mismatch.appendText(e.getMessage()); in evaluated()
88 mismatch.appendText("xpath returned no results."); in nodeExists()
/external/junit/src/main/java/org/junit/experimental/results/
DResultMatchers.java30 description.appendText("has " + count + " failures"); in failureCountIs()
50 description.appendText("has single failure containing " + string);
66 description.appendText("has failure containing " + string);

123