Home
last modified time | relevance | path

Searched refs:genericTypeOfMatcher (Results 1 – 3 of 3) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/hamcrest/
DMatcherGenericTypeExtractorTest.java13 import static org.mockito.internal.hamcrest.MatcherGenericTypeExtractor.genericTypeOfMatcher;
94 assertEquals(Integer.class, genericTypeOfMatcher(IntMatcher.class)); in findsGenericType()
95 assertEquals(Integer.class, genericTypeOfMatcher(StaticIntMatcher.class)); in findsGenericType()
96 assertEquals(Integer.class, genericTypeOfMatcher(IntMatcherFromInterface.class)); in findsGenericType()
97 assertEquals(Integer.class, genericTypeOfMatcher(StaticIntMatcherSubclass.class)); in findsGenericType()
98 assertEquals(Integer.class, genericTypeOfMatcher(IntMatcherFromInterface.class)); in findsGenericType()
99 assertEquals(Integer.class, genericTypeOfMatcher(StaticIntMatcherFromInterface.class)); in findsGenericType()
100 … assertEquals(Integer.class, genericTypeOfMatcher(SubclassGenericMatcherFromInterface.class)); in findsGenericType()
101 assertEquals(Integer.class, genericTypeOfMatcher(InsaneEdgeCase.class)); in findsGenericType()
103 assertEquals(Integer.class, genericTypeOfMatcher(new BaseMatcher<Integer>() { in findsGenericType()
[all …]
/external/mockito/src/main/java/org/mockito/hamcrest/
DMockitoHamcrest.java11 import static org.mockito.internal.hamcrest.MatcherGenericTypeExtractor.genericTypeOfMatcher;
62 return (T) defaultValue(genericTypeOfMatcher(matcher.getClass())); in argThat()
/external/mockito/src/main/java/org/mockito/internal/hamcrest/
DMatcherGenericTypeExtractor.java21 public static Class<?> genericTypeOfMatcher(Class<?> matcherClass) { in genericTypeOfMatcher() method in MatcherGenericTypeExtractor