Class MatcherGenericTypeExtractor

java.lang.Object
org.mockito.internal.hamcrest.MatcherGenericTypeExtractor

public final class MatcherGenericTypeExtractor extends Object
Extracts generic type of matcher
  • Constructor Details

    • MatcherGenericTypeExtractor

      private MatcherGenericTypeExtractor()
  • Method Details

    • genericTypeOfMatcher

      public static Class<?> genericTypeOfMatcher(Class<?> matcherClass)
      Gets the generic type of given matcher. For example, for matcher class that extends BaseMatcher[Integer] this method returns Integer