countMatchingParameters

public static int countMatchingParameters(List<ParameterMatcher> expectedParameters, List<Parameter> actualParameters, boolean ignoreNames)(source)

Counts the matching parameters.

Return

the number of matched parameters

Parameters

expectedParameters

the expected parameters

actualParameters

the actual Parameters

ignoreNames

the indicator whether to ignore parameter names


public static int countMatchingParameters(Method m, String methodName, List<ParameterMatcher> parameters, boolean ignoreNames)(source)

Counts the matching parameters.

Return

the number of matched parameters

Parameters

m

the actual method with the parameters

methodName

the name of the method

parameters

the expected parameters

ignoreNames

the indicator whether to ignore parameter names