org.mockito.configuration.AnnotationEngine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockito-core Show documentation
Show all versions of mockito-core Show documentation
Mock objects library for java
/*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.configuration;
import org.mockito.MockitoAnnotations;
/**
* Configures mock creation logic behind @Mock, @Captor and @Spy annotations
*
* If you are interested then see implementations or source code of {@link MockitoAnnotations#initMocks(Object)}
*/
public interface AnnotationEngine {
/**
* Allows extending the interface to perform action on specific fields on the test class.
*
* See the implementation of this method to figure out what is it for.
*
* @param clazz Class where to extract field information, check implementation for details
* @param testInstance Test instance
*/
void process(Class> clazz, Object testInstance);
}