/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/ |
D | IsCollectionWithSizeTest.java | 24 …assertMismatchDescription("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()
|
D | IsMapWithSizeTest.java | 22 …assertMismatchDescription("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() 63 …assertMismatchDescription("map size was <3>", aMapWithSize(2), mapWithKeys(new Object(), new Objec… in testProvidesConvenientShortcutForHasSizeEqualTo()
|
D | IsArrayContainingInOrderTest.java | 35 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()
|
D | IsIterableContainingInOrderTest.java | 33 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() 46 …assertMismatchDescription("item 2: value was <4>", contains123, asList(make(1), make(2), make(4))); in testDoesNotMatchIfOneOfMultipleItemsMismatch() 50 …assertMismatchDescription("no item was value with <4>", contains(value(4)), new ArrayList<WithValu… in testDoesNotMatchEmptyIterable()
|
D | IsArrayContainingInAnyOrderTest.java | 38 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()
|
D | IsIterableContainingInAnyOrderTest.java | 26 …assertMismatchDescription("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() 44 …assertMismatchDescription("not matched: <WithValue 2>", helpTheCompilerOut, asList(make(1), make(2… in testDoesNotMatchIfThereAreMoreElementsThanMatchers() 48 …assertMismatchDescription("no item matches: <4> in [<1>, <2>, <3>]", containsInAnyOrder(1, 2, 3, 4… in testDoesNotMatchIfThereAreMoreMatchersThanElements()
|
D | IsIterableContainingInRelativeOrderTest.java | 58 …assertMismatchDescription("value with <3> was not found after <WithValue 2>", contains123, valueLi… in testDoesNotMatchWithFewerElementsThanExpected() 62 …assertMismatchDescription("value with <4> was not found", containsInRelativeOrder(value(4)), asLis… in testDoesNotMatchIfSingleItemNotFound() 66 …assertMismatchDescription("value with <3> was not found after <WithValue 2>", contains123, asList(… in testDoesNotMatchIfOneOfMultipleItemsNotFound() 70 …assertMismatchDescription("value with <4> was not found", containsInRelativeOrder(value(4)), new A… in testDoesNotMatchEmptyIterable()
|
D | IsMapContainingTest.java | 27 … assertMismatchDescription("map was [<a=1>, <b=2>]", hasEntry(equalTo("c"), equalTo(3)), map); in testMatchesMapContainingMatchingKeyAndValue() 42 assertMismatchDescription("was null", hasEntry(anything(), anything()), null); in testDoesNotMatchNull()
|
D | IsMapContainingValueTest.java | 26 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/ |
D | ComparatorMatcherBuilderTest.java | 51 …assertMismatchDescription("<0> was less than <1>", integerComparatorMatcherBuilder.greaterThan(1),… in testMismatchDescriptions() 52 …assertMismatchDescription("<1> was equal to <1>", integerComparatorMatcherBuilder.greaterThan(1), … in testMismatchDescriptions() 53 …assertMismatchDescription("<1> was greater than <0>", integerComparatorMatcherBuilder.lessThan(0),… in testMismatchDescriptions() 54 … assertMismatchDescription("<2> was equal to <2>", integerComparatorMatcherBuilder.lessThan(2), 2); in testMismatchDescriptions() 56 …assertMismatchDescription("<1> was less than <0> when compared by <backwards integer comparator>",… in testMismatchDescriptions() 57 …assertMismatchDescription("<1> was equal to <1> when compared by <backwards integer comparator>", … in testMismatchDescriptions() 58 …assertMismatchDescription("<0> was greater than <1> when compared by <backwards integer comparator… in testMismatchDescriptions() 59 …assertMismatchDescription("<2> was equal to <2> when compared by <backwards integer comparator>", … in testMismatchDescriptions()
|
D | ComparatorMatcherTest.java | 34 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/ |
D | SamePropertyValuesAsTest.java | 25 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()
|
D | HasPropertyWithValueTest.java | 38 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() 73 …assertMismatchDescription("No property \"honk\"", hasProperty( "honk", anything()), shouldNotMatch… in testDescribesMissingPropertyMismatch()
|
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/ |
D | TypeSafeMatcherTest.java | 5 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()
|
D | FeatureMatcherTest.java | 20 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/ |
D | BigDecimalCloseToTest.java | 25 …assertMismatchDescription("<2.0> differed by <0.5> more than delta <0.5>", matcher, new BigDecimal… in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError() 27 …assertMismatchDescription("<0.0> differed by <0.5> more than delta <0.5>", matcher, new BigDecimal… in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError() 36 …assertMismatchDescription("<2.000000> differed by <0.5> more than delta <0.5>", matcher, new BigDe… in testEvaluatesToTrueIfArgumentHasDifferentScale() 38 …assertMismatchDescription("<0.000000> differed by <0.5> more than delta <0.5>", matcher, new BigDe… in testEvaluatesToTrueIfArgumentHasDifferentScale()
|
D | OrderingComparisonTest.java | 28 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()
|
D | IsCloseToTest.java | 23 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/ |
D | IsEventFromTest.java | 27 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() 50 …assertMismatchDescription("item type was java.util.EventObject", isEventMatcher, wrongSourceAndTyp… in testCanTestForSpecificEventClasses()
|
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/ |
D | IsCollectionContainingTest.java | 39 …assertMismatchDescription("mismatches were: [mismatched: b, mismatched: c]", matcher, asList("b", … in doesNotMatchCollectionWithoutAnElementForGivenMatcher() 40 assertMismatchDescription("was empty", matcher, new ArrayList<String>()); in doesNotMatchCollectionWithoutAnElementForGivenMatcher() 85 …assertMismatchDescription("a collection containing <4> mismatches were: [was <1>, was <2>, was <3>… in reportsMismatchWithAReadableDescriptionForMultipleItems()
|
D | StringContainsTest.java | 28 assertMismatchDescription("was \"Something else\"", stringContains, "Something else"); in testMatchesSubstrings() 40 assertMismatchDescription("was \"Something else\"", ignoringCase, "Something else"); in testMatchesSubstringsIgnoringCase()
|
D | StringStartsWithTest.java | 29 assertMismatchDescription("was \"Something else\"", stringStartsWith, "Something else"); in testMatchesStringAtStart() 43 assertMismatchDescription("was \"Something else\"", ignoreCase, "Something else"); in testMatchesStringAtStartIgnoringCase()
|
D | StringEndsWithTest.java | 28 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/ |
D | IsEmptyStringTest.java | 52 assertMismatchDescription("was \"a\"", emptyString(), "a"); in describesAMismatch() 53 assertMismatchDescription("was \"a\"", emptyOrNullString(), "a"); in describesAMismatch()
|
D | IsBlankStringTest.java | 52 assertMismatchDescription("was \"a\"", blankString(), "a"); in describesAMismatch() 53 assertMismatchDescription("was \"a\"", blankOrNullString(), "a"); in describesAMismatch()
|