All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mockito.internal.invocation.ArgumentMatcherAction Maven / Gradle / Ivy

/*
 * Copyright (c) 2016 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
package org.mockito.internal.invocation;

import org.mockito.ArgumentMatcher;

public interface ArgumentMatcherAction {
    /**
     * Implementations must apply the given matcher to the argument and return
     * true if the operation was successful or false
     * if not. In this case no more matchers and arguments will be passed by
     * {@link MatcherApplicationStrategy#forEachMatcherAndArgument(ArgumentMatcherAction)} to this method.
     * .
     *
     * @param matcher
     *            to process the argument, never null
     * @param argument
     *            to be processed by the matcher, can be null
     * @return
     *         
    *
  • true if the matcher was successfully * applied to the argument and the next pair of matcher and * argument should be passed *
  • false otherwise *
* * */ boolean apply(ArgumentMatcher matcher, Object argument); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy