public class MethodNameAndParameterLikeMatcher extends MethodNameMatcher
MethodNameMatcher
. The list of parameters is an exact match
for the same number of parameters.
Example:
new MethodNameAndParameterLikeMatcher("testMethod", int.class, String.class) would match the following methods.
testMethod(int p1, String p2)
testMethod(int p1, String p2, String p3)
However, it would not match the following methods.
testMethod(int p1)
testMethod(String p1, int p2)
Constructor and Description |
---|
MethodNameAndParameterLikeMatcher(String methodName,
Class<?>... methodParameters) |
public boolean matches(Method method)
MethodMatcher
matches
in interface MethodMatcher
matches
in class MethodNameMatcher
method
- The method to testpublic boolean equals(Object o)
equals
in class MethodNameMatcher
public int hashCode()
hashCode
in class MethodNameMatcher
Copyright © 2002-2014 P6Spy. All Rights Reserved.