/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/ |
D | IsEqualTest.java | 24 assertDoesNotMatch(matcher1, "bye"); in comparesObjectsUsingEqualsMethod() 25 assertDoesNotMatch(matcher1, null); in comparesObjectsUsingEqualsMethod() 29 assertDoesNotMatch(matcher2, 2); in comparesObjectsUsingEqualsMethod() 30 assertDoesNotMatch(matcher2, null); in comparesObjectsUsingEqualsMethod() 38 assertDoesNotMatch(matcher, 2); in canCompareNullValues() 39 assertDoesNotMatch(matcher, "hi"); in canCompareNullValues() 40 assertDoesNotMatch(matcher, new String[] {"a", "b"}); in canCompareNullValues() 62 assertDoesNotMatch(matcher, neverEqual); in honoursIsEqualImplementationEvenWithNullValues() 75 assertDoesNotMatch(matcher, s3); in comparesTheElementsOfAnObjectArray() 76 assertDoesNotMatch(matcher, s4); in comparesTheElementsOfAnObjectArray() [all …]
|
D | StringStartsWithTest.java | 21 assertDoesNotMatch(stringStartsWith, "START" + EXCERPT); in testMatchesStringAtStart() 22 assertDoesNotMatch(stringStartsWith, "START" + EXCERPT + "END"); in testMatchesStringAtStart() 24 assertDoesNotMatch(stringStartsWith, EXCERPT.toLowerCase()); in testMatchesStringAtStart() 26 assertDoesNotMatch(stringStartsWith, "EXCER"); in testMatchesStringAtStart() 36 assertDoesNotMatch(ignoreCase, "START" + "EXCerpt"); in testMatchesStringAtStartIgnoringCase() 37 assertDoesNotMatch(ignoreCase, "START" + "EXcerpT" + "END"); in testMatchesStringAtStartIgnoringCase() 40 assertDoesNotMatch(ignoreCase, "ExcER"); in testMatchesStringAtStartIgnoringCase()
|
D | StringEndsWithTest.java | 20 assertDoesNotMatch(stringEndsWith, EXCERPT + "END"); in testMatchesSubstringAtEnd() 23 assertDoesNotMatch(stringEndsWith, EXCERPT.toLowerCase()); in testMatchesSubstringAtEnd() 24 assertDoesNotMatch(stringEndsWith, "START" + EXCERPT + "END"); in testMatchesSubstringAtEnd() 26 assertDoesNotMatch(stringEndsWith, "EXCER"); in testMatchesSubstringAtEnd() 34 assertDoesNotMatch(ignoringCase, "eXCErpt" + "END"); in testMatchesSubstringAtEndIngoringCase() 37 assertDoesNotMatch(ignoringCase, "START" + "ExcERpt" + "END"); in testMatchesSubstringAtEndIngoringCase() 39 assertDoesNotMatch(ignoringCase, "ExcER"); in testMatchesSubstringAtEndIngoringCase()
|
D | AllOfTest.java | 29 assertDoesNotMatch("didn't fail first sub-matcher", matcher, "mood"); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers() 30 assertDoesNotMatch("didn't fail second sub-matcher", matcher, "goon"); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers() 31 assertDoesNotMatch("didn't fail both sub-matchers", matcher, "fred"); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers() 39 assertDoesNotMatch("didn't fail middle sub-matcher", matcher, "goon"); in evaluatesToTheTheLogicalConjunctionOfManyOtherMatchers() 50 assertDoesNotMatch("didn't fail last sub-matcher", matcher, new SampleSubClass("good")); in supportsMixedTypes()
|
D | IsTest.java | 26 assertDoesNotMatch(matcher, false); in matchesTheSameWayTheUnderlyingMatcherDoes() 40 assertDoesNotMatch(is("A"), "B"); in providesConvenientShortcutForIsEqualTo() 48 assertDoesNotMatch(matcher, new Object()); in providesConvenientShortcutForIsInstanceOf() 49 assertDoesNotMatch(matcher, null); in providesConvenientShortcutForIsInstanceOf()
|
D | CombinableTest.java | 26 assertDoesNotMatch("both didn't fail", NOT_3_AND_NOT_4, 3); in bothAcceptsAndRejects() 34 assertDoesNotMatch("tripleAnd didn't fail", tripleAnd, 3); in acceptsAndRejectsThreeAnds() 46 assertDoesNotMatch("either didn't fail", EITHER_3_OR_4, 6); in eitherAcceptsAndRejects() 54 assertDoesNotMatch("tripleOr didn't fail", tripleOr, 9); in acceptsAndRejectsThreeOrs()
|
D | StringContainsTest.java | 24 assertDoesNotMatch(stringContains, EXCERPT.toLowerCase()); in testMatchesSubstrings() 26 assertDoesNotMatch(stringContains, "XC"); in testMatchesSubstrings() 38 assertDoesNotMatch(ignoringCase, "xc"); in testMatchesSubstringsIgnoringCase()
|
D | IsNotTest.java | 26 assertDoesNotMatch(matcher, "A"); in evaluatesToTheTheLogicalNegationOfAnotherMatcher() 34 assertDoesNotMatch(matcher, "A"); in providesConvenientShortcutForNotEqualTo()
|
D | IsNullTest.java | 28 assertDoesNotMatch(nullMatcher, new Object()); in evaluatesToTrueIfArgumentIsNull() 31 assertDoesNotMatch(notNullMatcher, null); in evaluatesToTrueIfArgumentIsNull()
|
D | IsSameTest.java | 27 assertDoesNotMatch(matcher, new Object()); in evaluatesToTrueIfArgumentIsReferenceToASpecifiedObject() 36 assertDoesNotMatch(matcher, new Object()); in alternativeFactoryMethodAlsoMatchesOnlyIfArgumentIsReferenceToASpecifiedObject()
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/io/ |
D | FileMatchersTest.java | 28 assertDoesNotMatch("doesn't match existing file", FileMatchers.anExistingDirectory(), file); in testAnExistingDirectory() 29 …assertDoesNotMatch("doesn't match missing file", FileMatchers.anExistingDirectory(), new File("foo… in testAnExistingDirectory() 35 …assertDoesNotMatch("doesn't match missing file", FileMatchers.anExistingFileOrDirectory(), new Fil… in testAnExistingFileOrDirectory() 40 … assertDoesNotMatch("doesn't match existing directory", FileMatchers.anExistingFile(), directory); in testAnExistingFile() 41 … assertDoesNotMatch("doesn't match missing file", FileMatchers.anExistingFile(), new File("foo")); in testAnExistingFile() 48 assertDoesNotMatch("doesn't match unreadable file", FileMatchers.aReadableFile(), file); in testAReadableFile() 55 assertDoesNotMatch("doesn't match unwritable file", FileMatchers.aWritableFile(), file); in testAWritableFile() 61 … assertDoesNotMatch("doesn't match incorrect file size", FileMatchers.aFileWithSize(34L), file); in testAFileWithSizeLong() 67 …assertDoesNotMatch("doesn't match incorrect file size", FileMatchers.aFileWithSize(equalTo(23L)), … in testAFileWithSizeMatcherOfLong() 73 …assertDoesNotMatch("doesn't match incorrect file name", FileMatchers.aFileNamed(equalTo("foo")), f… in testAFileNamed() [all …]
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/text/ |
D | IsEmptyStringTest.java | 29 assertDoesNotMatch(emptyString(), null); in matchesNullAppropriately() 34 assertDoesNotMatch(emptyString(), " "); in matchesBlankStringAppropriately() 35 assertDoesNotMatch(emptyOrNullString(), " "); in matchesBlankStringAppropriately() 40 assertDoesNotMatch(emptyString(), "a"); in doesNotMatchFilledString() 41 assertDoesNotMatch(emptyOrNullString(), "a"); in doesNotMatchFilledString()
|
D | StringContainsInOrderTest.java | 21 assertDoesNotMatch("substrings out of order", m, "cab"); in testMatchesOnlyIfStringContainsGivenSubstringsInTheSameOrder() 22 assertDoesNotMatch("no substrings in string", m, "xyz"); in testMatchesOnlyIfStringContainsGivenSubstringsInTheSameOrder() 23 assertDoesNotMatch("substring missing", m, "ac"); in testMatchesOnlyIfStringContainsGivenSubstringsInTheSameOrder() 24 assertDoesNotMatch("empty string", m, ""); in testMatchesOnlyIfStringContainsGivenSubstringsInTheSameOrder()
|
D | IsEqualIgnoringCaseTest.java | 26 assertDoesNotMatch(matcher, "bye"); in ignoresCaseOfCharsInString() 33 assertDoesNotMatch(matcher, "hello "); in mismatchesIfAdditionalWhitespaceIsPresent() 34 assertDoesNotMatch(matcher, " hello"); in mismatchesIfAdditionalWhitespaceIsPresent() 41 assertDoesNotMatch(matcher, null); in mismatchesNull()
|
D | IsBlankStringTest.java | 29 assertDoesNotMatch(blankString(), null); in matchesNullAppropriately() 40 assertDoesNotMatch(blankString(), "a"); in doesNotMatchFilledString() 41 assertDoesNotMatch(blankOrNullString(), "a"); in doesNotMatchFilledString()
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/number/ |
D | BigDecimalCloseToTest.java | 24 assertDoesNotMatch("too large", matcher, new BigDecimal("2.0")); in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError() 26 assertDoesNotMatch("number too small", matcher, new BigDecimal("0.0")); in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError() 35 assertDoesNotMatch("too large", matcher, new BigDecimal("2.000000")); in testEvaluatesToTrueIfArgumentHasDifferentScale() 37 assertDoesNotMatch("number too small", matcher, new BigDecimal("0.000000")); in testEvaluatesToTrueIfArgumentHasDifferentScale()
|
D | IsCloseToTest.java | 22 assertDoesNotMatch("too large", matcher, 2.0); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError() 24 assertDoesNotMatch("number too small", matcher, 0.0); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError()
|
D | IsNanTest.java | 26 assertDoesNotMatch(notANumber(), 1.25); in doesNotMatchDoubleValue() 31 assertDoesNotMatch(notANumber(), Double.POSITIVE_INFINITY); in doesNotMatchInfinity()
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/ |
D | IsArrayTest.java | 25 assertDoesNotMatch("should not match array with different elements", in testDoesNotMatchAnArrayWhenElementsDoNotMatch() 30 assertDoesNotMatch("should not match larger array", in testDoesNotMatchAnArrayOfDifferentSize() 32 assertDoesNotMatch("should not match smaller array", in testDoesNotMatchAnArrayOfDifferentSize() 37 assertDoesNotMatch("should not match null", in testDoesNotMatchNull()
|
D | IsArrayContainingTest.java | 21 assertDoesNotMatch("should not matches array that doesn't contain 'a'", in testDoesNotMatchAnArrayThatDoesntContainAnElementMatchingTheGivenMatcher() 23 assertDoesNotMatch("should not matches empty array", in testDoesNotMatchAnArrayThatDoesntContainAnElementMatchingTheGivenMatcher() 28 assertDoesNotMatch("should not matches null", in testDoesNotMatchNull()
|
D | IsArrayWithSizeTest.java | 19 assertDoesNotMatch("incorrect size", arrayWithSize(equalTo(2)), new Object[] {1, 2, 3}); in testMatchesWhenSizeIsCorrect() 24 assertDoesNotMatch("incorrect size", arrayWithSize(2), new Object[] {1, 2, 3}); in testProvidesConvenientShortcutForArrayWithSizeEqualTo() 29 assertDoesNotMatch("incorrect size", emptyArray(), new Object[] {1}); in testEmptyArray()
|
D | IsInTest.java | 25 assertDoesNotMatch("d", isIn, "d"); in testReturnsTrueIfArgumentIsInCollection() 34 assertDoesNotMatch("d", isIn, "d"); in testReturnsTrueIfArgumentIsInArray()
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/xml/ |
D | HasXPathTest.java | 90 assertDoesNotMatch(hasXPath("/root/something[3]/cheese", ns, equalTo("Cheddar")), xml); in failsIfNodeIsMissing() 91 assertDoesNotMatch(hasXPath("//something[@id='c']/cheese", ns), xml); in failsIfNodeIsMissing() 96 assertDoesNotMatch(hasXPath("//cheese:foreignSomething", equalTo("Badger")), xml); in failsIfNodeIsMissingInNamespace() 97 assertDoesNotMatch(hasXPath("//cheese:foreignSomething"), xml); in failsIfNodeIsMissingInNamespace()
|
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/ |
D | AbstractMatcherTest.java | 23 public static <T> void assertDoesNotMatch(Matcher<? super T> c, T arg) { in assertDoesNotMatch() method in AbstractMatcherTest 24 assertDoesNotMatch("Unexpected match", c, arg); in assertDoesNotMatch() 27 public static <T> void assertDoesNotMatch(String message, Matcher<? super T> c, T arg) { in assertDoesNotMatch() method in AbstractMatcherTest
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/object/ |
D | MatchesPatternTest.java | 28 …assertDoesNotMatch("A different string does not match", new MatchesPattern(Pattern.compile("a")), … in doesNotMatchADifferentString() 33 … assertDoesNotMatch("A substring does not match", new MatchesPattern(Pattern.compile("a")), "ab"); in doesNotMatchSubstring()
|