public class PowerMockitoInjectingAnnotationEngine
extends org.mockito.internal.configuration.InjectingAnnotationEngine
InjectingAnnotationEngine with the exception that it
doesn't create/injects mocks annotated with the standard annotations such as
Mock.| Constructor and Description |
|---|
PowerMockitoInjectingAnnotationEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(java.lang.Class<?> context,
java.lang.Object testClass)
Process the fields of the test instance and create Mocks, Spies, Captors and inject them on fields
annotated @InjectMocks.
|
public PowerMockitoInjectingAnnotationEngine()
public void process(java.lang.Class<?> context,
java.lang.Object testClass)
org.mockito.internal.configuration.InjectingAnnotationEngineThis code process the test class and the super classes.
process in interface org.mockito.configuration.AnnotationEngineprocess in class org.mockito.internal.configuration.InjectingAnnotationEnginecontext - Not usedtestClass - The instance of the test, should not be null.AnnotationEngine.process(Class, Object)