/external/mockito/src/main/java/org/mockito/hamcrest/ |
D | MockitoHamcrest.java | 60 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/ |
D | LocaleMatcherTest.java | 84 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local 118 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 132 final LocaleMatcher matcher = newLocaleMatcher("fr, en, en_GB, es_MX, es_419, es"); in testenGB() local 142 final LocaleMatcher matcher = newLocaleMatcher(lpl, null, 0.09); in testFallbacks() local 154 final LocaleMatcher matcher = newLocaleMatcher( in testOverrideData() local 169 …final LocaleMatcher matcher = newLocaleMatcher(LocalePriorityList.add(ULocale.FRENCH).add(ULocale.… in testBasics() local 182 final LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testFallback() local 193 final LocaleMatcher matcher = newLocaleMatcher("en, fil, ro, nn"); in testSpecials() local 204 final LocaleMatcher matcher = newLocaleMatcher("en, en_GB, es, es_419"); in testRegionalSpecials() local 213 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/ |
D | LocaleMatcherTest.java | 87 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local 121 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 135 final LocaleMatcher matcher = newLocaleMatcher("fr, en, en_GB, es_MX, es_419, es"); in testenGB() local 145 final LocaleMatcher matcher = newLocaleMatcher(lpl, null, 0.09); in testFallbacks() local 157 final LocaleMatcher matcher = newLocaleMatcher( in testOverrideData() local 172 …final LocaleMatcher matcher = newLocaleMatcher(LocalePriorityList.add(ULocale.FRENCH).add(ULocale.… in testBasics() local 185 final LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testFallback() local 196 final LocaleMatcher matcher = newLocaleMatcher("en, fil, ro, nn"); in testSpecials() local 207 final LocaleMatcher matcher = newLocaleMatcher("en, en_GB, es, es_419"); in testRegionalSpecials() local 216 final LocaleMatcher matcher = newLocaleMatcher("zh, zh_TW, zh_MO"); in testHK() local [all …]
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | LocaleMatcherTest.java | 76 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local 109 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 122 final LocaleMatcher matcher = newLocaleMatcher("fr, en, en_GB, es_MX, es_419, es"); in testenGB() local 131 final LocaleMatcher matcher = newLocaleMatcher(lpl, null, 0.09); in testFallbacks() local 142 final LocaleMatcher matcher = newLocaleMatcher( in testOverrideData() local 157 …final LocaleMatcher matcher = newLocaleMatcher(LocalePriorityList.add(ULocale.FRENCH).add(ULocale.… in testBasics() local 169 final LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testFallback() local 179 final LocaleMatcher matcher = newLocaleMatcher("en, fil, ro, nn"); in testSpecials() local 189 final LocaleMatcher matcher = newLocaleMatcher("en, en_GB, es, es_419"); in testRegionalSpecials() local 197 final LocaleMatcher matcher = newLocaleMatcher("zh, zh_TW, zh_MO"); in testHK() local [all …]
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/text/ |
D | IsEqualIgnoringCaseTest.java | 13 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/ |
D | DescribedAsTest.java | 15 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
|
D | AnyOfTest.java | 16 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
|
D | IsTest.java | 15 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
|
D | AllOfTest.java | 18 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
|
D | IsEqualTest.java | 14 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
|
D | IsNotTest.java | 15 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
|
D | IsSameTest.java | 15 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
|
D | IsInstanceOfTest.java | 14 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/ |
D | HasToStringTest.java | 21 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/ |
D | AbstractMatcherTest.java | 13 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/ |
D | EqualsWithDeltaTest.java | 17 ArgumentMatcher<Number> matcher = equalsWithDelta(null); in testEqualsWithDelta_NullExpected() local 23 ArgumentMatcher<Number> matcher = equalsWithDelta(1.0); in testEqualsWithDelta_NullActual() local 29 ArgumentMatcher<Number> matcher = equalsWithDelta(null); in testEqualsWithDelta_NullActualAndExpected() local 37 ArgumentMatcher<Number> matcher = equalsWithDelta(expected); in testEqualsWithDelta_WhenActualAndExpectedAreTheSameObject() local
|
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/ |
D | CombinableMatcher.java | 10 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()
|
D | IsNot.java | 14 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()
|
D | Is.java | 18 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/ |
D | CharMatcherTest.java | 107 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/ |
D | CharMatcherTest.java | 133 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/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/internal/ |
D | MatcherTest.java | 31 private void checkMatcherBehavesAsExpected(MatcherApi matcher) { in checkMatcherBehavesAsExpected() 70 private void assertMatched(MatcherApi matcher, String number, PhoneNumberDesc desc) { in assertMatched() 77 private void assertInvalid(MatcherApi matcher, String number, PhoneNumberDesc desc) { in assertInvalid() 84 private void assertTooLong(MatcherApi matcher, String number, PhoneNumberDesc desc) { in assertTooLong()
|
/external/mockito/src/main/java/org/mockito/ |
D | ArgumentMatchers.java | 1195 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/ |
D | ThrowableMessageMatcher.java | 11 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/ |
D | ReaderStringTest.java | 27 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
|