Home
last modified time | relevance | path

Searched defs:matcher (Results 1 – 25 of 204) sorted by relevance

123456789

/external/mockito/src/main/java/org/mockito/hamcrest/
DMockitoHamcrest.java60 public static <T> T argThat(Matcher<T> matcher) { in argThat()
74 public static char charThat(Matcher<Character> matcher) { in charThat()
88 public static boolean booleanThat(Matcher<Boolean> matcher) { in booleanThat()
102 public static byte byteThat(Matcher<Byte> matcher) { in byteThat()
116 public static short shortThat(Matcher<Short> matcher) { in shortThat()
130 public static int intThat(Matcher<Integer> matcher) { in intThat()
144 public static long longThat(Matcher<Long> matcher) { in longThat()
158 public static float floatThat(Matcher<Float> matcher) { in floatThat()
172 public static double doubleThat(Matcher<Double> matcher) { in doubleThat()
177 private static <T> void reportMatcher(Matcher<T> matcher) { in reportMatcher()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleMatcherTest.java78 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local
112 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local
126 final LocaleMatcher matcher = newLocaleMatcher("fr, en, en_GB, es_MX, es_419, es"); in testenGB() local
136 final LocaleMatcher matcher = newLocaleMatcher(lpl, null, 0.09); in testFallbacks() local
148 final LocaleMatcher matcher = newLocaleMatcher( in testOverrideData() local
163 …final LocaleMatcher matcher = newLocaleMatcher(LocalePriorityList.add(ULocale.FRENCH).add(ULocale.… in testBasics() local
176 final LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testFallback() local
187 final LocaleMatcher matcher = newLocaleMatcher("en, fil, ro, nn"); in testSpecials() local
198 final LocaleMatcher matcher = newLocaleMatcher("en, en_GB, es, es_419"); in testRegionalSpecials() local
207 final LocaleMatcher matcher = newLocaleMatcher("zh, zh_TW, zh_MO"); in testHK() local
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DLocaleMatcherTest.java79 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local
113 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local
127 final LocaleMatcher matcher = newLocaleMatcher("fr, en, en_GB, es_MX, es_419, es"); in testenGB() local
137 final LocaleMatcher matcher = newLocaleMatcher(lpl, null, 0.09); in testFallbacks() local
149 final LocaleMatcher matcher = newLocaleMatcher( in testOverrideData() local
164 …final LocaleMatcher matcher = newLocaleMatcher(LocalePriorityList.add(ULocale.FRENCH).add(ULocale.… in testBasics() local
177 final LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testFallback() local
188 final LocaleMatcher matcher = newLocaleMatcher("en, fil, ro, nn"); in testSpecials() local
199 final LocaleMatcher matcher = newLocaleMatcher("en, en_GB, es, es_419"); in testRegionalSpecials() local
208 final LocaleMatcher matcher = newLocaleMatcher("zh, zh_TW, zh_MO"); in testHK() local
[all …]
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/text/
DIsEqualIgnoringCaseTest.java13 Matcher<String> matcher = equalToIgnoringCase("irrelevant"); in copesWithNullsAndUnknownTypes() local
21 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in ignoresCaseOfCharsInString() local
31 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in mismatchesIfAdditionalWhitespaceIsPresent() local
39 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in mismatchesNull() local
52 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in describesItself() local
58 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in describesAMismatch() local
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
DDescribedAsTest.java15 Matcher<Object> matcher = describedAs("irrelevant", anything()); in copesWithNullsAndUnknownTypes() local
23 Matcher<?> matcher = describedAs("my description", anything()); in overridesDescriptionOfOtherMatcherWithThatPassedToConstructor() local
30 Matcher<?> matcher = describedAs("value 1 = %0, value 2 = %1", anything(), 33, 97); in appendsValuesToDescription() local
37 Matcher<String> matcher = describedAs("irrelevant", equalTo("hi")); in celegatesMatchingToAnotherMatcher() local
45 Matcher<Integer> matcher = describedAs("irrelevant", equalTo(2)); in delegatesMismatchDescriptionToAnotherMatcher() local
DIsTest.java15 Matcher<String> matcher = is("something"); in copesWithNullsAndUnknownTypes() local
23 final Matcher<Boolean> matcher = is(equalTo(true)); in matchesTheSameWayTheUnderlyingMatcherDoes() local
37 final Matcher<String> matcher = is("A"); in providesConvenientShortcutForIsEqualTo() local
46 final Matcher matcher = isA(Integer.class); in providesConvenientShortcutForIsInstanceOf() local
DAnyOfTest.java16 Matcher<String> matcher = anyOf(equalTo("irrelevant"), startsWith("irr")); in copesWithNullsAndUnknownTypes() local
24 Matcher<String> matcher = anyOf(startsWith("goo"), endsWith("ood")); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers() local
34 …Matcher<String> matcher = anyOf(startsWith("g"), startsWith("go"), endsWith("d"), startsWith("go")… in evaluatesToTheTheLogicalDisjunctionOfManyOtherMatchers() local
43 final Matcher<SampleSubClass> matcher = anyOf( in supportsMixedTypes() local
DAllOfTest.java18 Matcher<String> matcher = allOf(equalTo("irrelevant"), startsWith("irr")); in copesWithNullsAndUnknownTypes() local
26 Matcher<String> matcher = allOf(startsWith("goo"), endsWith("ood")); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers() local
36 …Matcher<String> matcher = allOf(startsWith("g"), startsWith("go"), endsWith("d"), startsWith("go")… in evaluatesToTheTheLogicalConjunctionOfManyOtherMatchers() local
44 final Matcher<SampleSubClass> matcher = allOf( in supportsMixedTypes() local
DIsNotTest.java15 Matcher<String> matcher = not("something"); in copesWithNullsAndUnknownTypes() local
23 final Matcher<String> matcher = not(equalTo("A")); in evaluatesToTheTheLogicalNegationOfAnotherMatcher() local
31 final Matcher<String> matcher = not("A"); in providesConvenientShortcutForNotEqualTo() local
DIsEqualTest.java14 Matcher<?> matcher = equalTo("irrelevant"); in copesWithNullsAndUnknownTypes() local
35 final Matcher<Object> matcher = equalTo(null); in canCompareNullValues() local
59 Matcher<Object> matcher = equalTo(null); in honoursIsEqualImplementationEvenWithNullValues() local
72 final Matcher<String[]> matcher = equalTo(s1); in comparesTheElementsOfAnObjectArray() local
87 final Matcher<int[]> matcher = equalTo(i1); in comparesTheElementsOfAnArrayOfPrimitiveTypes() local
102 final Matcher<int[][]> matcher = equalTo(i1); in recursivelyTestsElementsOfArrays() local
DIsSameTest.java15 Matcher<String> matcher = sameInstance("irrelevant"); in copesWithNullsAndUnknownTypes() local
24 Matcher<Object> matcher = sameInstance(o1); in evaluatesToTrueIfArgumentIsReferenceToASpecifiedObject() local
33 Matcher<Object> matcher = theInstance(o1); in alternativeFactoryMethodAlsoMatchesOnlyIfArgumentIsReferenceToASpecifiedObject() local
DIsInstanceOfTest.java14 Matcher<?> matcher = instanceOf(Number.class); in copesWithNullsAndUnknownTypes() local
22 final Matcher<Object> matcher = instanceOf(Number.class); in evaluatesToTrueIfArgumentIsInstanceOfASpecificClass() local
65 private static <T> T with(@SuppressWarnings("unused") Matcher<T> matcher) { in with()
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/object/
DHasToStringTest.java21 Matcher<Object> matcher = hasToString(equalTo("irrelevant")); in copesWithNullsAndUnknownTypes() local
29 final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT)); in matchesWhenUtilisingANestedMatcher() local
37 final Matcher<Object> matcher = hasToString(TO_STRING_RESULT); in matchesWhenUsingShortcutForHasToStringEqualTo() local
45 final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT)); in describesItself() local
51 final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT)); in describesAMismatch() local
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/
DAbstractMatcherTest.java13 public static <T> void assertMatches(Matcher<T> matcher, T arg) { in assertMatches()
17 public static <T> void assertMatches(String message, Matcher<T> matcher, T arg) { in assertMatches()
31 public static void assertDescription(String expected, Matcher<?> matcher) { in assertDescription()
37 …public static <T> void assertMismatchDescription(String expected, Matcher<? super T> matcher, T ar… in assertMismatchDescription()
42 public static void assertNullSafe(Matcher<?> matcher) { in assertNullSafe()
51 public static void assertUnknownTypeSafe(Matcher<?> matcher) { in assertUnknownTypeSafe()
60 public static <T> String mismatchDescription(Matcher<? super T> matcher, T arg) { in mismatchDescription()
/external/mockito/src/test/java/org/mockitousage/bugs/
DEqualsWithDeltaTest.java13 ArgumentMatcher<Number> matcher = equalsWithDelta(null); in testEqualsWithDelta_NullExpected() local
19 ArgumentMatcher<Number> matcher = equalsWithDelta(1.0); in testEqualsWithDelta_NullActual() local
25 ArgumentMatcher<Number> matcher = equalsWithDelta(null); in testEqualsWithDelta_NullActualAndExpected() local
33 ArgumentMatcher<Number> matcher = equalsWithDelta(expected); in testEqualsWithDelta_WhenActualAndExpectedAreTheSameObject() local
/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()
50 public static <LHS> CombinableBothMatcher<LHS> both(Matcher<? super LHS> matcher) { in both()
56 public CombinableBothMatcher(Matcher<? super X> matcher) { in CombinableBothMatcher()
69 public static <LHS> CombinableEitherMatcher<LHS> either(Matcher<? super LHS> matcher) { in either()
75 public CombinableEitherMatcher(Matcher<? super X> matcher) { in CombinableEitherMatcher()
DIsNot.java14 private final Matcher<T> matcher; field in IsNot
16 public IsNot(Matcher<T> matcher) { in IsNot()
40 public static <T> Matcher<T> not(Matcher<T> matcher) { in not()
DIs.java18 private final Matcher<T> matcher; field in Is
20 public Is(Matcher<T> matcher) { in Is()
48 public static <T> Matcher<T> is(Matcher<T> matcher) { in is()
/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()
113 private void reallyTestEmpty(CharMatcher matcher) throws Exception { in reallyTestEmpty()
155 private void doTestNoMatches(CharMatcher matcher, String s) { in doTestNoMatches()
182 private void doTestAllMatches(CharMatcher matcher, String s) { in doTestAllMatches()
193 private void reallyTestNoMatches(CharMatcher matcher, CharSequence s) { in reallyTestNoMatches()
221 private void reallyTestAllMatches(CharMatcher matcher, CharSequence s) { in reallyTestAllMatches()
250 private void doTestGeneral(CharMatcher matcher, char match, char noMatch) { in doTestGeneral()
257 private void doTestOneCharMatch(CharMatcher matcher, String s) { in doTestOneCharMatch()
265 private void doTestOneCharNoMatch(CharMatcher matcher, String s) { in doTestOneCharNoMatch()
273 private void doTestMatchThenNoMatch(CharMatcher matcher, String s) { in doTestMatchThenNoMatch()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DCharMatcherTest.java133 private void doTestSetBits(CharMatcher matcher) { in doTestSetBits()
170 private void doTestEmpty(CharMatcher matcher) throws Exception { in doTestEmpty()
176 private void reallyTestEmpty(CharMatcher matcher) throws Exception { in reallyTestEmpty()
201 private void doTestNull(CharMatcher matcher) throws Exception { in doTestNull()
224 private void doTestNoMatches(CharMatcher matcher, String s) { in doTestNoMatches()
251 private void doTestAllMatches(CharMatcher matcher, String s) { in doTestAllMatches()
262 private void reallyTestNoMatches(CharMatcher matcher, CharSequence s) { in reallyTestNoMatches()
290 private void reallyTestAllMatches(CharMatcher matcher, CharSequence s) { in reallyTestAllMatches()
319 private void doTestGeneral(CharMatcher matcher, char match, char noMatch) { in doTestGeneral()
326 private void doTestOneCharMatch(CharMatcher matcher, String s) { in doTestOneCharMatch()
[all …]
/external/mockito/src/main/java/org/mockito/
DArgumentMatchers.java1195 public static <T> T argThat(ArgumentMatcher<T> matcher) { in argThat()
1210 public static char charThat(ArgumentMatcher<Character> matcher) { in charThat()
1225 public static boolean booleanThat(ArgumentMatcher<Boolean> matcher) { in booleanThat()
1240 public static byte byteThat(ArgumentMatcher<Byte> matcher) { in byteThat()
1255 public static short shortThat(ArgumentMatcher<Short> matcher) { in shortThat()
1270 public static int intThat(ArgumentMatcher<Integer> matcher) { in intThat()
1285 public static long longThat(ArgumentMatcher<Long> matcher) { in longThat()
1300 public static float floatThat(ArgumentMatcher<Float> matcher) { in floatThat()
1315 public static double doubleThat(ArgumentMatcher<Double> matcher) { in doubleThat()
1320 private static void reportMatcher(ArgumentMatcher<?> matcher) { in reportMatcher()
/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()
34 public static <T extends Throwable> Matcher<T> hasMessage(final Matcher<String> matcher) { in hasMessage()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/reader/
DReaderStringTest.java27 Matcher matcher = StreamReader.NON_PRINTABLE.matcher("test"); in testCheckPrintable() local
39 Matcher matcher = StreamReader.NON_PRINTABLE.matcher("test\u0005 fail"); in testCheckNonPrintable() local
60 Matcher matcher = StreamReader.NON_PRINTABLE.matcher(str); in testCheckAll() local
/external/easymock/src/org/easymock/internal/
DILegacyMatcherMethods.java23 void setDefaultMatcher(org.easymock.ArgumentsMatcher matcher); in setDefaultMatcher()
26 void setMatcher(Method method, org.easymock.ArgumentsMatcher matcher); in setMatcher()
/external/proguard/src/proguard/util/
DSettableMatcher.java31 private StringMatcher matcher; field in SettableMatcher
34 public void setMatcher(StringMatcher matcher) in setMatcher()

123456789