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

com.github.aro_tech.extended_mockito.ExtendedMockito Maven / Gradle / Ivy

/**
 * 
 */
package com.github.aro_tech.extended_mockito;

import org.mockito.ArgumentCaptor;

/**
 * Mixin interface which includes Mockito plus added functionalities
 * 
 * @author aro_tech
 *
 */
public interface ExtendedMockito extends MockitoMixin, ExtendedMatchers {

	/**
	 * Convenience method for creating an ArgumentCaptor for the given type
	 * 
	 * @param clazz
	 * @return
	 */
	default  ArgumentCaptor captorOf(Class clazz) {
		return ArgumentCaptor.forClass(clazz);
	}
}