Home
last modified time | relevance | path

Searched refs:matcher (Results 1 – 25 of 492) sorted by relevance

12345678910>>...20

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleMatcherTest.java78 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local
79 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser()
80 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser()
81 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser()
112 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local
115 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant_TW")); in testChinese()
116 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant")); in testChinese()
117 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_TW")); in testChinese()
118 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_Hans_CN")); in testChinese()
119 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_CN")); in testChinese()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DLocaleMatcherTest.java79 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local
80 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser()
81 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser()
82 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser()
113 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local
116 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant_TW")); in testChinese()
117 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant")); in testChinese()
118 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_TW")); in testChinese()
119 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_Hans_CN")); in testChinese()
120 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_CN")); in testChinese()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DCharMatcherTest.java107 private void doTestEmpty(CharMatcher matcher) throws Exception { in doTestEmpty() argument
108 reallyTestEmpty(matcher); in doTestEmpty()
109 reallyTestEmpty(matcher.negate()); in doTestEmpty()
110 reallyTestEmpty(matcher.precomputed()); in doTestEmpty()
113 private void reallyTestEmpty(CharMatcher matcher) throws Exception { in reallyTestEmpty() argument
114 assertEquals(-1, matcher.indexIn("")); in reallyTestEmpty()
115 assertEquals(-1, matcher.indexIn("", 0)); in reallyTestEmpty()
117 matcher.indexIn("", 1); in reallyTestEmpty()
122 matcher.indexIn("", -1); in reallyTestEmpty()
126 assertEquals(-1, matcher.lastIndexIn("")); in reallyTestEmpty()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DCharMatcherTest.java133 private void doTestSetBits(CharMatcher matcher) { in doTestSetBits() argument
135 matcher.setBits(bitset); in doTestSetBits()
137 assertEquals(matcher.matches((char) i), bitset.get(i)); in doTestSetBits()
170 private void doTestEmpty(CharMatcher matcher) throws Exception { in doTestEmpty() argument
171 reallyTestEmpty(matcher); in doTestEmpty()
172 reallyTestEmpty(matcher.negate()); in doTestEmpty()
173 reallyTestEmpty(matcher.precomputed()); in doTestEmpty()
176 private void reallyTestEmpty(CharMatcher matcher) throws Exception { in reallyTestEmpty() argument
177 assertEquals(-1, matcher.indexIn("")); in reallyTestEmpty()
178 assertEquals(-1, matcher.indexIn("", 0)); in reallyTestEmpty()
[all …]
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
DIsEqualTest.java14 Matcher<?> matcher = equalTo("irrelevant"); in copesWithNullsAndUnknownTypes() local
16 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes()
17 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes()
35 final Matcher<Object> matcher = equalTo(null); in canCompareNullValues() local
37 assertMatches(matcher, null); in canCompareNullValues()
38 assertDoesNotMatch(matcher, 2); in canCompareNullValues()
39 assertDoesNotMatch(matcher, "hi"); in canCompareNullValues()
40 assertDoesNotMatch(matcher, new String[] {"a", "b"}); in canCompareNullValues()
59 Matcher<Object> matcher = equalTo(null); in honoursIsEqualImplementationEvenWithNullValues() local
61 assertMatches(matcher, alwaysEqual); in honoursIsEqualImplementationEvenWithNullValues()
[all …]
DAnyOfTest.java16 Matcher<String> matcher = anyOf(equalTo("irrelevant"), startsWith("irr")); in copesWithNullsAndUnknownTypes() local
18 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes()
19 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes()
24 Matcher<String> matcher = anyOf(startsWith("goo"), endsWith("ood")); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers() local
26 assertMatches("didn't pass both sub-matchers", matcher, "good"); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers()
27 assertMatches("didn't pass second sub-matcher", matcher, "mood"); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers()
28 assertMatches("didn't pass first sub-matcher", matcher, "goon"); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers()
29 assertDoesNotMatch("didn't fail both sub-matchers", matcher, "flan"); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers()
34 …Matcher<String> matcher = anyOf(startsWith("g"), startsWith("go"), endsWith("d"), startsWith("go")… in evaluatesToTheTheLogicalDisjunctionOfManyOtherMatchers() local
36 assertMatches("didn't pass middle sub-matcher", matcher, "vlad"); in evaluatesToTheTheLogicalDisjunctionOfManyOtherMatchers()
[all …]
DDescribedAsTest.java15 Matcher<Object> matcher = describedAs("irrelevant", anything()); in copesWithNullsAndUnknownTypes() local
17 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes()
18 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes()
23 Matcher<?> matcher = describedAs("my description", anything()); in overridesDescriptionOfOtherMatcherWithThatPassedToConstructor() local
25 assertDescription("my description", matcher); in overridesDescriptionOfOtherMatcherWithThatPassedToConstructor()
30 Matcher<?> matcher = describedAs("value 1 = %0, value 2 = %1", anything(), 33, 97); in appendsValuesToDescription() local
32 assertDescription("value 1 = <33>, value 2 = <97>", matcher); in appendsValuesToDescription()
37 Matcher<String> matcher = describedAs("irrelevant", equalTo("hi")); in celegatesMatchingToAnotherMatcher() local
39 assertMatches(matcher, "hi"); in celegatesMatchingToAnotherMatcher()
40 assertDoesNotMatch("matched", matcher, "oi"); in celegatesMatchingToAnotherMatcher()
[all …]
DIsTest.java15 Matcher<String> matcher = is("something"); in copesWithNullsAndUnknownTypes() local
17 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes()
18 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes()
23 final Matcher<Boolean> matcher = is(equalTo(true)); in matchesTheSameWayTheUnderlyingMatcherDoes() local
25 assertMatches(matcher, true); in matchesTheSameWayTheUnderlyingMatcherDoes()
26 assertDoesNotMatch(matcher, false); in matchesTheSameWayTheUnderlyingMatcherDoes()
37 final Matcher<String> matcher = is("A"); in providesConvenientShortcutForIsEqualTo() local
39 assertMatches(matcher, "A"); in providesConvenientShortcutForIsEqualTo()
46 final Matcher matcher = isA(Integer.class); in providesConvenientShortcutForIsInstanceOf() local
47 assertMatches(matcher, 1); in providesConvenientShortcutForIsInstanceOf()
[all …]
DAllOfTest.java18 Matcher<String> matcher = allOf(equalTo("irrelevant"), startsWith("irr")); in copesWithNullsAndUnknownTypes() local
20 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes()
21 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes()
26 Matcher<String> matcher = allOf(startsWith("goo"), endsWith("ood")); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers() local
28 assertMatches("didn't pass both sub-matchers", matcher, "good"); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers()
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()
36 …Matcher<String> matcher = allOf(startsWith("g"), startsWith("go"), endsWith("d"), startsWith("go")… in evaluatesToTheTheLogicalConjunctionOfManyOtherMatchers() local
38 assertMatches("didn't pass all sub-matchers", matcher, "good"); in evaluatesToTheTheLogicalConjunctionOfManyOtherMatchers()
[all …]
DIsNotTest.java15 Matcher<String> matcher = not("something"); in copesWithNullsAndUnknownTypes() local
17 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes()
18 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes()
23 final Matcher<String> matcher = not(equalTo("A")); in evaluatesToTheTheLogicalNegationOfAnotherMatcher() local
25 assertMatches(matcher, "B"); in evaluatesToTheTheLogicalNegationOfAnotherMatcher()
26 assertDoesNotMatch(matcher, "A"); in evaluatesToTheTheLogicalNegationOfAnotherMatcher()
31 final Matcher<String> matcher = not("A"); in providesConvenientShortcutForNotEqualTo() local
33 assertMatches(matcher, "B"); in providesConvenientShortcutForNotEqualTo()
34 assertDoesNotMatch(matcher, "A"); in providesConvenientShortcutForNotEqualTo()
DIsSameTest.java15 Matcher<String> matcher = sameInstance("irrelevant"); in copesWithNullsAndUnknownTypes() local
17 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes()
18 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes()
24 Matcher<Object> matcher = sameInstance(o1); in evaluatesToTrueIfArgumentIsReferenceToASpecifiedObject() local
26 assertMatches(matcher, o1); in evaluatesToTrueIfArgumentIsReferenceToASpecifiedObject()
27 assertDoesNotMatch(matcher, new Object()); in evaluatesToTrueIfArgumentIsReferenceToASpecifiedObject()
33 Matcher<Object> matcher = theInstance(o1); in alternativeFactoryMethodAlsoMatchesOnlyIfArgumentIsReferenceToASpecifiedObject() local
35 assertMatches(matcher, o1); in alternativeFactoryMethodAlsoMatchesOnlyIfArgumentIsReferenceToASpecifiedObject()
36 assertDoesNotMatch(matcher, new Object()); in alternativeFactoryMethodAlsoMatchesOnlyIfArgumentIsReferenceToASpecifiedObject()
/external/mockito/src/main/java/org/mockito/hamcrest/
DMockitoHamcrest.java60 public static <T> T argThat(Matcher<T> matcher) { in argThat() argument
61 reportMatcher(matcher); in argThat()
62 return (T) defaultValue(genericTypeOfMatcher(matcher.getClass())); in argThat()
74 public static char charThat(Matcher<Character> matcher) { in charThat() argument
75 reportMatcher(matcher); in charThat()
88 public static boolean booleanThat(Matcher<Boolean> matcher) { in booleanThat() argument
89 reportMatcher(matcher); in booleanThat()
102 public static byte byteThat(Matcher<Byte> matcher) { in byteThat() argument
103 reportMatcher(matcher); in byteThat()
116 public static short shortThat(Matcher<Short> matcher) { in shortThat() argument
[all …]
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/text/
DIsEqualIgnoringCaseTest.java13 Matcher<String> matcher = equalToIgnoringCase("irrelevant"); in copesWithNullsAndUnknownTypes() local
15 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes()
16 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes()
21 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in ignoresCaseOfCharsInString() local
23 assertMatches(matcher, "HELLO"); in ignoresCaseOfCharsInString()
24 assertMatches(matcher, "hello"); in ignoresCaseOfCharsInString()
25 assertMatches(matcher, "HelLo"); in ignoresCaseOfCharsInString()
26 assertDoesNotMatch(matcher, "bye"); in ignoresCaseOfCharsInString()
31 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in mismatchesIfAdditionalWhitespaceIsPresent() local
33 assertDoesNotMatch(matcher, "hello "); in mismatchesIfAdditionalWhitespaceIsPresent()
[all …]
DIsEqualIgnoringWhiteSpaceTest.java12 … private final Matcher<String> matcher = equalToIgnoringWhiteSpace("Hello World how\n are we? "); field in IsEqualIgnoringWhiteSpaceTest
16 return matcher; in createMatcher()
20 assertThat("Hello World how are we?", matcher); in testPassesIfWordsAreSameButWhitespaceDiffers()
21 assertThat(" Hello World how are \n\n\twe?", matcher); in testPassesIfWordsAreSameButWhitespaceDiffers()
25 assertThat("Hello PLANET how are we?", not(matcher)); in testFailsIfTextOtherThanWhitespaceDiffers()
26 assertThat("Hello World how are we", not(matcher)); in testFailsIfTextOtherThanWhitespaceDiffers()
30 assertThat("HelloWorld how are we?", not(matcher)); in testFailsIfWhitespaceIsAddedOrRemovedInMidWord()
31 assertThat("Hello Wo rld how are we?", not(matcher)); in testFailsIfWhitespaceIsAddedOrRemovedInMidWord()
35 assertThat(null, not(matcher)); in testFailsIfMatchingAgainstNull()
49 matcher); in testHasAReadableDescription()
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/number/
DBigDecimalCloseToTest.java11 private final Matcher<BigDecimal> matcher = closeTo(new BigDecimal("1.0"), new BigDecimal("0.5")); field in BigDecimalCloseToTest
20 assertTrue(matcher.matches(new BigDecimal("1.0"))); in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError()
21 assertTrue(matcher.matches(new BigDecimal("0.5"))); in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError()
22 assertTrue(matcher.matches(new BigDecimal("1.5"))); in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError()
24 assertDoesNotMatch("too large", matcher, new BigDecimal("2.0")); in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError()
25 …assertMismatchDescription("<2.0> differed by <0.5> more than delta <0.5>", matcher, new BigDecimal… in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError()
26 assertDoesNotMatch("number too small", matcher, new BigDecimal("0.0")); in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError()
27 …assertMismatchDescription("<0.0> differed by <0.5> more than delta <0.5>", matcher, new BigDecimal… in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError()
31 assertTrue(matcher.matches(new BigDecimal("1.000000"))); in testEvaluatesToTrueIfArgumentHasDifferentScale()
32 assertTrue(matcher.matches(new BigDecimal("0.500000"))); in testEvaluatesToTrueIfArgumentHasDifferentScale()
[all …]
DIsCloseToTest.java9 private final Matcher<Double> matcher = closeTo(1.0d, 0.5d); field in IsCloseToTest
18 assertMatches("1.0", matcher, 1.0); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError()
19 assertMatches("0.5d", matcher, 0.5d); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError()
20 assertMatches("1.5d", matcher, 1.5d); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError()
22 assertDoesNotMatch("too large", matcher, 2.0); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError()
23 assertMismatchDescription("<3.0> differed by <1.5> more than delta <0.5>", matcher, 3.0d); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError()
24 assertDoesNotMatch("number too small", matcher, 0.0); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError()
25 assertMismatchDescription("<0.1> differed by <0.4> more than delta <0.5>", matcher, 0.1); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError()
29 assertDescription("a numeric value within <0.5> of <1.0>", matcher); in test_is_self_describing()
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/
DAbstractMatcherTest.java13 public static <T> void assertMatches(Matcher<T> matcher, T arg) { in assertMatches() argument
14 assertMatches("Expected match, but mismatched", matcher, arg); in assertMatches()
17 public static <T> void assertMatches(String message, Matcher<T> matcher, T arg) { in assertMatches() argument
18 if (!matcher.matches(arg)) { in assertMatches()
19 Assert.fail(message + " because: '" + mismatchDescription(matcher, arg) + "'"); in assertMatches()
31 public static void assertDescription(String expected, Matcher<?> matcher) { in assertDescription() argument
33 description.appendDescriptionOf(matcher); in assertDescription()
37 …public static <T> void assertMismatchDescription(String expected, Matcher<? super T> matcher, T ar… in assertMismatchDescription() argument
38 Assert.assertFalse("Precondition: Matcher should not match item.", matcher.matches(arg)); in assertMismatchDescription()
39 … Assert.assertEquals("Expected mismatch description", expected, mismatchDescription(matcher, arg)); in assertMismatchDescription()
[all …]
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
DCombinableMatcher.java10 private final Matcher<? super T> matcher; field in CombinableMatcher
12 public CombinableMatcher(Matcher<? super T> matcher) { in CombinableMatcher() argument
13 this.matcher = matcher; in CombinableMatcher()
18 if (!matcher.matches(item)) { in matchesSafely()
19 matcher.describeMismatch(item, mismatch); in matchesSafely()
27 description.appendDescriptionOf(matcher); in describeTo()
40 matchers.add(matcher); in templatedListWith()
50 public static <LHS> CombinableBothMatcher<LHS> both(Matcher<? super LHS> matcher) { in both() argument
51 return new CombinableBothMatcher<LHS>(matcher); in both()
56 public CombinableBothMatcher(Matcher<? super X> matcher) { in CombinableBothMatcher() argument
[all …]
DIs.java18 private final Matcher<T> matcher; field in Is
20 public Is(Matcher<T> matcher) { in Is() argument
21 this.matcher = matcher; in Is()
26 return matcher.matches(arg); in matches()
31 description.appendText("is ").appendDescriptionOf(matcher); in describeTo()
36 matcher.describeMismatch(item, mismatchDescription); in describeMismatch()
48 public static <T> Matcher<T> is(Matcher<T> matcher) { in is() argument
49 return new Is<T>(matcher); in is()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DUriMatcherTest.java22 UriMatcher matcher; field in UriMatcherTest
28 matcher = new UriMatcher(NO_MATCH); in getMatcher()
29 root = Robolectric.shadowOf(matcher).rootNode; in getMatcher()
43 matcher.addURI(AUTH, path, 1); in canAddBasicMatch()
57 matcher.addURI(AUTH, "#", 1); in canAddWildcardMatches()
58 matcher.addURI(AUTH, "*", 2); in canAddWildcardMatches()
66 matcher.addURI(AUTH, "bar", 1); in canMatch()
67 assertThat(matcher.match(Uri.withAppendedPath(URI, "bar")), is(1)); in canMatch()
69 matcher.addURI(AUTH, "bar/#", 2); in canMatch()
70 assertThat(matcher.match(Uri.withAppendedPath(URI, "bar/1")), is(2)); in canMatch()
[all …]
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/object/
DHasToStringTest.java21 Matcher<Object> matcher = hasToString(equalTo("irrelevant")); in copesWithNullsAndUnknownTypes() local
23 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes()
24 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes()
29 final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT)); in matchesWhenUtilisingANestedMatcher() local
31 assertMatches(matcher, TEST_OBJECT); in matchesWhenUtilisingANestedMatcher()
32 assertDoesNotMatch(matcher, new Object()); in matchesWhenUtilisingANestedMatcher()
37 final Matcher<Object> matcher = hasToString(TO_STRING_RESULT); in matchesWhenUsingShortcutForHasToStringEqualTo() local
39 assertMatches(matcher, TEST_OBJECT); in matchesWhenUsingShortcutForHasToStringEqualTo()
40 assertDoesNotMatch(matcher, new Object()); in matchesWhenUsingShortcutForHasToStringEqualTo()
45 final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT)); in describesItself() local
[all …]
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/
DAternativeApproach.java47 Matcher m = pat.matcher(s); in test()
64 Matcher m = pat.matcher(s); in test2()
70 m = pat.matcher(s1); in test2()
76 m = pat.matcher(s2); in test2()
80 m = pat.matcher(s3); in test2()
92 Matcher m = pat.matcher(s); in test3()
98 pat.matcher(nonMatching); in test3()
109 Matcher m = pat.matcher(s); in test4()
115 m = pat.matcher(s2); in test4()
119 m = pat.matcher(s3); in test4()
[all …]
/external/easymock/src/org/easymock/internal/
DExpectedInvocation.java34 private final org.easymock.ArgumentsMatcher matcher; field in ExpectedInvocation
45 org.easymock.ArgumentsMatcher matcher) { in ExpectedInvocation() argument
47 this.matcher = matcher; in ExpectedInvocation()
48 this.matchers = (matcher == null) ? createMissingMatchers(invocation, in ExpectedInvocation()
77 … && ((this.matcher == null && other.matcher == null) || (this.matcher != null && this.matcher in equals()
78 .equals(other.matcher))) in equals()
93 actual, matcher); in matches()
110 return matchers != null ? myToString() : invocation.toString(matcher); in toString()
132 org.easymock.ArgumentsMatcher matcher) { in withMatcher()
133 return new ExpectedInvocation(invocation, null, matcher); in withMatcher()
/external/icu/icu4c/source/test/intltest/
Dregextst.cpp414 REMatcher = REPattern->matcher(unEscapedInput, status); in doRegexLMTest()
490 REMatcher = &REPattern->matcher(status)->reset(&inputText); in doRegexLMTestUTF8()
616 … RegexMatcher *m = pattern->matcher(UNICODE_STRING_SIMPLE("a\\u00dfxzzz").unescape(), status); in Basic()
761 RegexMatcher matcher(&pattern, 0, status); in UTextBasic() local
767 matcher.reset(&input); in UTextBasic()
769 REGEX_ASSERT_UTEXT_UTF8(str_abc, matcher.inputText()); in UTextBasic()
771 matcher.reset(matcher.inputText()); in UTextBasic()
773 REGEX_ASSERT_UTEXT_UTF8(str_abc, matcher.inputText()); in UTextBasic()
818 RegexMatcher *m1 = pat2->matcher(inStr1, status); in API_Match()
942 RegexMatcher *matcher = pat->matcher(data, status); in API_Match() local
[all …]
/external/junit/src/main/java/org/junit/internal/matchers/
DThrowableMessageMatcher.java11 private final Matcher<String> matcher; field in ThrowableMessageMatcher
13 public ThrowableMessageMatcher(Matcher<String> matcher) { in ThrowableMessageMatcher() argument
14 this.matcher = matcher; in ThrowableMessageMatcher()
19 description.appendDescriptionOf(matcher); in describeTo()
24 return matcher.matches(item.getMessage()); in matchesSafely()
30 matcher.describeMismatch(item.getMessage(), description); in describeMismatchSafely()
34 public static <T extends Throwable> Matcher<T> hasMessage(final Matcher<String> matcher) { in hasMessage() argument
35 return new ThrowableMessageMatcher<T>(matcher); in hasMessage()

12345678910>>...20