Class MethodMatcher

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

    public class MethodMatcher
    extends org.hamcrest.TypeSafeMatcher<Method>
    • Constructor Detail

      • MethodMatcher

        public MethodMatcher​(Method expectedMethod)
    • Method Detail

      • matchesSafely

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

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

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