Package org.jmock.internal.matcher
Class MethodNameMatcher
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<java.lang.reflect.Method>
-
- org.jmock.internal.matcher.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)
-
-
-
Method Detail
-
matchesSafely
public boolean matchesSafely(java.lang.reflect.Method method)
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<java.lang.reflect.Method>
-
describeMismatchSafely
protected void describeMismatchSafely(java.lang.reflect.Method item, org.hamcrest.Description mismatchDescription)
- Overrides:
describeMismatchSafely
in classorg.hamcrest.TypeSafeMatcher<java.lang.reflect.Method>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
-