Home
last modified time | relevance | path

Searched refs:assertMismatchDescription (Results 1 – 25 of 41) sorted by relevance

12

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsCollectionWithSizeTest.java24assertMismatchDescription("collection size was <3>", hasSize(equalTo(2)), asList(null, null, null)… in testMatchesWhenSizeIsCorrect()
30 assertMismatchDescription("collection size was <2>", hasSize(equalTo(3)), list); in testMatchesCollectionWhenSizeIsCorrectUsingObjectElementType()
36 assertMismatchDescription("collection size was <2>", hasSize(equalTo(3)), list); in testMatchesCollectionWhenSizeIsCorrectUsingStringElementType()
42 assertMismatchDescription("collection size was <2>", hasSize(equalTo(3)), list); in testMatchesCollectionWhenSizeIsCorrectUsingWildcardElementType()
48 assertMismatchDescription("collection size was <2>", hasSize(equalTo(3)), list); in testMatchesListWhenSizeIsCorrectUsingObjectElementType()
54 assertMismatchDescription("collection size was <2>", hasSize(equalTo(3)), list); in testMatchesListWhenSizeIsCorrectUsingStringElementType()
60 assertMismatchDescription("collection size was <2>", hasSize(equalTo(3)), list); in testMatchesListWhenSizeIsCorrectUsingWildcardElementType()
65 assertMismatchDescription("collection size was <3>", hasSize(2), asList(null, null, null)); in testProvidesConvenientShortcutForHasSizeEqualTo()
DIsMapWithSizeTest.java22assertMismatchDescription("map size was <3>", aMapWithSize(equalTo(2)), mapWithKeys("a", "b", "c")… in testMatchesWhenSizeIsCorrect()
28 assertMismatchDescription("map size was <2>", aMapWithSize(equalTo(3)), map); in testMatchesMapWhenSizeIsCorrectUsingObjectElementType()
34 assertMismatchDescription("map size was <2>", aMapWithSize(equalTo(3)), map); in testMatchesMapWhenSizeIsCorrectUsingStringElementType()
40 assertMismatchDescription("map size was <2>", aMapWithSize(equalTo(3)), map); in testMatchesMapWhenSizeIsCorrectUsingWildcardElementType()
46 assertMismatchDescription("map size was <2>", aMapWithSize(equalTo(3)), map); in testMatchesListWhenSizeIsCorrectUsingObjectElementType()
52 assertMismatchDescription("map size was <2>", aMapWithSize(equalTo(3)), list); in testMatchesListWhenSizeIsCorrectUsingStringElementType()
58 assertMismatchDescription("map size was <2>", aMapWithSize(equalTo(3)), list); in testMatchesListWhenSizeIsCorrectUsingWildcardElementType()
63assertMismatchDescription("map size was <3>", aMapWithSize(2), mapWithKeys(new Object(), new Objec… in testProvidesConvenientShortcutForHasSizeEqualTo()
DIsArrayContainingInOrderTest.java35 assertMismatchDescription("was null", matcher, null); in testMismatchesItemsInOrder()
36 assertMismatchDescription("no item was <1>", matcher, new Integer[] {}); in testMismatchesItemsInOrder()
37 assertMismatchDescription("no item was <2>", matcher, new Integer[] {1}); in testMismatchesItemsInOrder()
38 assertMismatchDescription("item 0: was <4>", matcher, new Integer[] {4,3,2,1}); in testMismatchesItemsInOrder()
39 assertMismatchDescription("item 2: was <4>", matcher, new Integer[] {1,2, 4}); in testMismatchesItemsInOrder()
DIsIterableContainingInOrderTest.java33 assertMismatchDescription("not matched: <4>", contains(1, 2, 3), asList(1, 2, 3, 4)); in testDoesNotMatchWithMoreElementsThanExpected()
38 assertMismatchDescription("no item was value with <3>", contains123, valueList); in testDoesNotMatchWithFewerElementsThanExpected()
42 assertMismatchDescription("item 0: value was <3>", contains(value(4)), asList(make(3))); in testDoesNotMatchIfSingleItemMismatches()
46assertMismatchDescription("item 2: value was <4>", contains123, asList(make(1), make(2), make(4))); in testDoesNotMatchIfOneOfMultipleItemsMismatch()
50assertMismatchDescription("no item was value with <4>", contains(value(4)), new ArrayList<WithValu… in testDoesNotMatchEmptyIterable()
DIsArrayContainingInAnyOrderTest.java38 assertMismatchDescription("was null", matcher, null); in testMismatchesItemsInAnyOrder()
39 assertMismatchDescription("no item matches: <1>, <2>, <3> in []", matcher, new Integer[] {}); in testMismatchesItemsInAnyOrder()
40 assertMismatchDescription("no item matches: <2>, <3> in [<1>]", matcher, new Integer[] {1}); in testMismatchesItemsInAnyOrder()
41 assertMismatchDescription("not matched: <4>", matcher, new Integer[] {4,3,2,1}); in testMismatchesItemsInAnyOrder()
DIsIterableContainingInAnyOrderTest.java26assertMismatchDescription("no item matches: <1>, <2> in []", containsInAnyOrder(1, 2), Collections… in testDoesNotMatchEmpty()
38 assertMismatchDescription("not matched: <4>", containsInAnyOrder(1, 2, 3), asList(1, 2, 4)); in testDoesNotMatchIfOneOfMultipleElementsMismatches()
44assertMismatchDescription("not matched: <WithValue 2>", helpTheCompilerOut, asList(make(1), make(2… in testDoesNotMatchIfThereAreMoreElementsThanMatchers()
48assertMismatchDescription("no item matches: <4> in [<1>, <2>, <3>]", containsInAnyOrder(1, 2, 3, 4… in testDoesNotMatchIfThereAreMoreMatchersThanElements()
DIsIterableContainingInRelativeOrderTest.java58assertMismatchDescription("value with <3> was not found after <WithValue 2>", contains123, valueLi… in testDoesNotMatchWithFewerElementsThanExpected()
62assertMismatchDescription("value with <4> was not found", containsInRelativeOrder(value(4)), asLis… in testDoesNotMatchIfSingleItemNotFound()
66assertMismatchDescription("value with <3> was not found after <WithValue 2>", contains123, asList(… in testDoesNotMatchIfOneOfMultipleItemsNotFound()
70assertMismatchDescription("value with <4> was not found", containsInRelativeOrder(value(4)), new A… in testDoesNotMatchEmptyIterable()
DIsMapContainingTest.java27assertMismatchDescription("map was [<a=1>, <b=2>]", hasEntry(equalTo("c"), equalTo(3)), map); in testMatchesMapContainingMatchingKeyAndValue()
42 assertMismatchDescription("was null", hasEntry(anything(), anything()), null); in testDoesNotMatchNull()
DIsMapContainingValueTest.java26 assertMismatchDescription("map was []", hasValue(1), map); in testDoesNotMatchEmptyMap()
44 assertMismatchDescription("map was [<a=1>, <b=2>, <c=3>]", hasValue(4), map); in testMatchesMapContainingValue()
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/comparator/
DComparatorMatcherBuilderTest.java51assertMismatchDescription("<0> was less than <1>", integerComparatorMatcherBuilder.greaterThan(1),… in testMismatchDescriptions()
52assertMismatchDescription("<1> was equal to <1>", integerComparatorMatcherBuilder.greaterThan(1), … in testMismatchDescriptions()
53assertMismatchDescription("<1> was greater than <0>", integerComparatorMatcherBuilder.lessThan(0),… in testMismatchDescriptions()
54assertMismatchDescription("<2> was equal to <2>", integerComparatorMatcherBuilder.lessThan(2), 2); in testMismatchDescriptions()
56assertMismatchDescription("<1> was less than <0> when compared by <backwards integer comparator>",… in testMismatchDescriptions()
57assertMismatchDescription("<1> was equal to <1> when compared by <backwards integer comparator>", … in testMismatchDescriptions()
58assertMismatchDescription("<0> was greater than <1> when compared by <backwards integer comparator… in testMismatchDescriptions()
59assertMismatchDescription("<2> was equal to <2> when compared by <backwards integer comparator>", … in testMismatchDescriptions()
DComparatorMatcherTest.java34 assertMismatchDescription("<0> was less than <1>", greaterThan(1), 0);
35 assertMismatchDescription("<1> was equal to <1>", greaterThan(1), 1);
36 assertMismatchDescription("<1> was greater than <0>", lessThan(0), 1);
37 assertMismatchDescription("<2> was equal to <2>", lessThan(2), 2);
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/beans/
DSamePropertyValuesAsTest.java25 assertMismatchDescription("is incompatible type: ExampleBean", in testReportsMismatchWhenActualTypeIsNotAssignableToExpectedType()
30 assertMismatchDescription("string was \"different\"", in testReportsMismatchOnFirstPropertyDifference()
32 assertMismatchDescription("int was <2>", in testReportsMismatchOnFirstPropertyDifference()
34 assertMismatchDescription("value was <Value other>", in testReportsMismatchOnFirstPropertyDifference()
44 assertMismatchDescription("has extra properties called [extra]", in testRejectsSubTypeThatHasExtraProperties()
DHasPropertyWithValueTest.java38 assertMismatchDescription("property 'property' was \"not expected\"", in testMatchesInfolessBeanWithMatchedNamedProperty()
44 assertMismatchDescription("property 'property' was \"with info\"", in testMatchesBeanWithInfoWithMatchedNamedProperty()
49 assertMismatchDescription("No property \"nonExistentProperty\"", in testDoesNotMatchInfolessBeanWithoutMatchedNamedProperty()
54 assertMismatchDescription("property \"writeOnlyProperty\" is not readable", in testDoesNotMatchWriteOnlyProperty()
73assertMismatchDescription("No property \"honk\"", hasProperty( "honk", anything()), shouldNotMatch… in testDescribesMissingPropertyMismatch()
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/
DTypeSafeMatcherTest.java5 import static org.hamcrest.AbstractMatcherTest.assertMismatchDescription;
36 assertMismatchDescription("was null", matcher, null); in describesMismatches()
37 assertMismatchDescription("was a java.lang.Integer (<3>)", (Matcher)matcher, 3); in describesMismatches()
38 assertMismatchDescription("The mismatch", matcher, "a string"); in describesMismatches()
DFeatureMatcherTest.java20 assertMismatchDescription("result mismatch-description", resultMatcher, new Thingy("foo")); in mismatchesPartOfAnObject()
25 assertMismatchDescription("was null", resultMatcher, null); in doesNotThrowNullPointerException()
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/number/
DBigDecimalCloseToTest.java25assertMismatchDescription("<2.0> differed by <0.5> more than delta <0.5>", matcher, new BigDecimal… in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError()
27assertMismatchDescription("<0.0> differed by <0.5> more than delta <0.5>", matcher, new BigDecimal… in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError()
36assertMismatchDescription("<2.000000> differed by <0.5> more than delta <0.5>", matcher, new BigDe… in testEvaluatesToTrueIfArgumentHasDifferentScale()
38assertMismatchDescription("<0.000000> differed by <0.5> more than delta <0.5>", matcher, new BigDe… in testEvaluatesToTrueIfArgumentHasDifferentScale()
DOrderingComparisonTest.java28 assertMismatchDescription("<0> was less than <1>", greaterThan(1), 0); in testMismatchDescriptions()
29 assertMismatchDescription("<1> was equal to <1>", greaterThan(1), 1); in testMismatchDescriptions()
30 assertMismatchDescription("<1> was greater than <0>", lessThan(0), 1); in testMismatchDescriptions()
31 assertMismatchDescription("<2> was equal to <2>", lessThan(2), 2); in testMismatchDescriptions()
DIsCloseToTest.java23 assertMismatchDescription("<3.0> differed by <1.5> more than delta <0.5>", matcher, 3.0d); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError()
25 assertMismatchDescription("<0.1> differed by <0.4> more than delta <0.5>", matcher, 0.1); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError()
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/object/
DIsEventFromTest.java27 assertMismatchDescription("source was \"source 2\"", isEventMatcher, ev2); in testEvaluatesToTrueIfArgumentIsAnEventObjectFiredByASpecifiedSource()
48 assertMismatchDescription("source was \"wrong source\"", isEventMatcher, wrongSource); in testCanTestForSpecificEventClasses()
49 assertMismatchDescription("item type was java.util.EventObject", isEventMatcher, wrongType); in testCanTestForSpecificEventClasses()
50assertMismatchDescription("item type was java.util.EventObject", isEventMatcher, wrongSourceAndTyp… in testCanTestForSpecificEventClasses()
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
DIsCollectionContainingTest.java39assertMismatchDescription("mismatches were: [mismatched: b, mismatched: c]", matcher, asList("b", … in doesNotMatchCollectionWithoutAnElementForGivenMatcher()
40 assertMismatchDescription("was empty", matcher, new ArrayList<String>()); in doesNotMatchCollectionWithoutAnElementForGivenMatcher()
85assertMismatchDescription("a collection containing <4> mismatches were: [was <1>, was <2>, was <3>… in reportsMismatchWithAReadableDescriptionForMultipleItems()
DStringContainsTest.java28 assertMismatchDescription("was \"Something else\"", stringContains, "Something else"); in testMatchesSubstrings()
40 assertMismatchDescription("was \"Something else\"", ignoringCase, "Something else"); in testMatchesSubstringsIgnoringCase()
DStringStartsWithTest.java29 assertMismatchDescription("was \"Something else\"", stringStartsWith, "Something else"); in testMatchesStringAtStart()
43 assertMismatchDescription("was \"Something else\"", ignoreCase, "Something else"); in testMatchesStringAtStartIgnoringCase()
DStringEndsWithTest.java28 assertMismatchDescription("was \"Something else\"", stringEndsWith, "Something else"); in testMatchesSubstringAtEnd()
41 assertMismatchDescription("was \"Something else\"", ignoringCase, "Something else"); in testMatchesSubstringAtEndIngoringCase()
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/text/
DIsEmptyStringTest.java52 assertMismatchDescription("was \"a\"", emptyString(), "a"); in describesAMismatch()
53 assertMismatchDescription("was \"a\"", emptyOrNullString(), "a"); in describesAMismatch()
DIsBlankStringTest.java52 assertMismatchDescription("was \"a\"", blankString(), "a"); in describesAMismatch()
53 assertMismatchDescription("was \"a\"", blankOrNullString(), "a"); in describesAMismatch()

12