public DataProviderMethodMatcher(final MethodMatcherContext context) { super(context); this.directMethodMatcher = new DirectMethodMatcher(context); this.arrayEndingMethodMatcher = new ArrayEndingMethodMatcher(context); }
/** * {@inheritDoc} */ @Override protected boolean hasConformance() { boolean matching = false; if (directMethodMatcher.conforms()) { matching = true; matchingMatcher = directMethodMatcher; } else if (arrayEndingMethodMatcher.conforms()) { matching = true; matchingMatcher = arrayEndingMethodMatcher; } return matching; }
/** * {@inheritDoc} */ @Override protected boolean match(final Parameter[] parameters, final Object[] arguments) { return ReflectionRecipes.exactMatch(parameters, getContext().getArguments()); }
/** {@inheritDoc} */ @Override protected boolean match(final Parameter[] parameters, final Object[] arguments) { return ReflectionRecipes.exactMatch(parameters, getContext().getArguments()); }
public DataProviderMethodMatcher(final MethodMatcherContext context) { super(context); this.directMethodMatcher = new DirectMethodMatcher(context); this.arrayEndingMethodMatcher = new ArrayEndingMethodMatcher(context); }
/** {@inheritDoc} */ @Override protected boolean hasConformance() { boolean matching = false; if (directMethodMatcher.conforms()) { matching = true; matchingMatcher = directMethodMatcher; } else if (arrayEndingMethodMatcher.conforms()) { matching = true; matchingMatcher = arrayEndingMethodMatcher; } return matching; }