Class MethodNameMatcher

  • All Implemented Interfaces:
    org.hamcrest.Matcher<java.lang.reflect.Method>, org.hamcrest.SelfDescribing

    public class MethodNameMatcher
    extends org.hamcrest.TypeSafeMatcher<java.lang.reflect.Method>
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodNameMatcher​(java.lang.String nameRegex)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void describeMismatchSafely​(java.lang.reflect.Method item, org.hamcrest.Description mismatchDescription)  
      void describeTo​(org.hamcrest.Description description)  
      boolean matchesSafely​(java.lang.reflect.Method method)  
      • Methods inherited from class org.hamcrest.TypeSafeMatcher

        describeMismatch, matches
      • Methods inherited from class org.hamcrest.BaseMatcher

        _dont_implement_Matcher___instead_extend_BaseMatcher_, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MethodNameMatcher

        public MethodNameMatcher​(java.lang.String nameRegex)
    • Method Detail

      • matchesSafely

        public boolean matchesSafely​(java.lang.reflect.Method method)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<java.lang.reflect.Method>
      • describeMismatchSafely

        protected void describeMismatchSafely​(java.lang.reflect.Method item,
                                              org.hamcrest.Description mismatchDescription)
        Overrides:
        describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<java.lang.reflect.Method>
      • describeTo

        public void describeTo​(org.hamcrest.Description description)