Home
last modified time | relevance | path

Searched refs:assertDoesNotMatch (Results 1 – 25 of 34) sorted by relevance

12

/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
DIsEqualTest.java24 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 …]
DStringStartsWithTest.java21 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()
DStringEndsWithTest.java20 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()
DAllOfTest.java29 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()
DIsTest.java26 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()
DCombinableTest.java26 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()
DStringContainsTest.java24 assertDoesNotMatch(stringContains, EXCERPT.toLowerCase()); in testMatchesSubstrings()
26 assertDoesNotMatch(stringContains, "XC"); in testMatchesSubstrings()
38 assertDoesNotMatch(ignoringCase, "xc"); in testMatchesSubstringsIgnoringCase()
DIsNotTest.java26 assertDoesNotMatch(matcher, "A"); in evaluatesToTheTheLogicalNegationOfAnotherMatcher()
34 assertDoesNotMatch(matcher, "A"); in providesConvenientShortcutForNotEqualTo()
DIsNullTest.java28 assertDoesNotMatch(nullMatcher, new Object()); in evaluatesToTrueIfArgumentIsNull()
31 assertDoesNotMatch(notNullMatcher, null); in evaluatesToTrueIfArgumentIsNull()
DIsSameTest.java27 assertDoesNotMatch(matcher, new Object()); in evaluatesToTrueIfArgumentIsReferenceToASpecifiedObject()
36 assertDoesNotMatch(matcher, new Object()); in alternativeFactoryMethodAlsoMatchesOnlyIfArgumentIsReferenceToASpecifiedObject()
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/io/
DFileMatchersTest.java28 assertDoesNotMatch("doesn't match existing file", FileMatchers.anExistingDirectory(), file); in testAnExistingDirectory()
29assertDoesNotMatch("doesn't match missing file", FileMatchers.anExistingDirectory(), new File("foo… in testAnExistingDirectory()
35assertDoesNotMatch("doesn't match missing file", FileMatchers.anExistingFileOrDirectory(), new Fil… in testAnExistingFileOrDirectory()
40assertDoesNotMatch("doesn't match existing directory", FileMatchers.anExistingFile(), directory); in testAnExistingFile()
41assertDoesNotMatch("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()
61assertDoesNotMatch("doesn't match incorrect file size", FileMatchers.aFileWithSize(34L), file); in testAFileWithSizeLong()
67assertDoesNotMatch("doesn't match incorrect file size", FileMatchers.aFileWithSize(equalTo(23L)), … in testAFileWithSizeMatcherOfLong()
73assertDoesNotMatch("doesn't match incorrect file name", FileMatchers.aFileNamed(equalTo("foo")), f… in testAFileNamed()
[all …]
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/text/
DIsEmptyStringTest.java29 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()
DStringContainsInOrderTest.java21 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()
DIsEqualIgnoringCaseTest.java26 assertDoesNotMatch(matcher, "bye"); in ignoresCaseOfCharsInString()
33 assertDoesNotMatch(matcher, "hello "); in mismatchesIfAdditionalWhitespaceIsPresent()
34 assertDoesNotMatch(matcher, " hello"); in mismatchesIfAdditionalWhitespaceIsPresent()
41 assertDoesNotMatch(matcher, null); in mismatchesNull()
DIsBlankStringTest.java29 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/
DBigDecimalCloseToTest.java24 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()
DIsCloseToTest.java22 assertDoesNotMatch("too large", matcher, 2.0); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError()
24 assertDoesNotMatch("number too small", matcher, 0.0); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError()
DIsNanTest.java26 assertDoesNotMatch(notANumber(), 1.25); in doesNotMatchDoubleValue()
31 assertDoesNotMatch(notANumber(), Double.POSITIVE_INFINITY); in doesNotMatchInfinity()
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsArrayTest.java25 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()
DIsArrayContainingTest.java21 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()
DIsArrayWithSizeTest.java19 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()
DIsInTest.java25 assertDoesNotMatch("d", isIn, "d"); in testReturnsTrueIfArgumentIsInCollection()
34 assertDoesNotMatch("d", isIn, "d"); in testReturnsTrueIfArgumentIsInArray()
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/xml/
DHasXPathTest.java90 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/
DAbstractMatcherTest.java23 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/
DMatchesPatternTest.java28assertDoesNotMatch("A different string does not match", new MatchesPattern(Pattern.compile("a")), … in doesNotMatchADifferentString()
33assertDoesNotMatch("A substring does not match", new MatchesPattern(Pattern.compile("a")), "ab"); in doesNotMatchSubstring()

12