• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2007 Mockito contributors
3  * This program is made available under the terms of the MIT License.
4  */
5 package org.mockito.configuration;
6 
7 import org.mockito.MockitoAnnotations;
8 
9 /**
10  * Configures mock creation logic behind @Mock, @Captor and @Spy annotations
11  * <p>
12  * If you are interested then see implementations or source code of {@link MockitoAnnotations#initMocks(Object)}
13  *
14  * <p>This interface can be used to configure a different annotation engine through
15  * {@link org.mockito.configuration.IMockitoConfiguration}, however this mechanism is being superseded by the new
16  * {@link org.mockito.plugins plugin} system.
17  *
18  * <p>
19  * Note that if it exists on the classpath both a class <code>org.mockito.configuration.MockitoConfiguration</code>
20  * and a file <code>mockito-extensions/org.mockito.plugins.AnnotationEngine</code> then the implementation of
21  * <code>org.mockito.configuration.MockitoConfiguration</code> will be chosen instead of the one in the file.
22 
23  * @deprecated Please use {@link org.mockito.plugins.AnnotationEngine} instead,
24  *             this interface will probably be removed in mockito 3.
25  */
26 @Deprecated
27 public interface AnnotationEngine extends org.mockito.plugins.AnnotationEngine {
28 }
29