public class AnnotationEnabler extends AbstractPowerMockTestListenerBase implements AnnotationEnablerListener
Mock,
Mock or Mock have mock objects created for them
and injected to the fields. It will also delegate to a special implementation
of the InjectingAnnotationEngine in Mockito which inject's spies,
captors etc.
It will only inject to fields that haven't been set before (i.e that are
null).| Constructor and Description |
|---|
AnnotationEnabler() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeTestMethod(Object testInstance,
Method method,
Object[] arguments)
Provides an empty implementation.
|
Class<? extends Annotation>[] |
getMockAnnotations() |
afterTestMethod, afterTestSuiteEnded, beforeTestSuiteStartedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterTestMethod, afterTestSuiteEnded, beforeTestSuiteStartedpublic void beforeTestMethod(Object testInstance, Method method, Object[] arguments) throws Exception
AbstractPowerMockTestListenerBasebeforeTestMethod in interface PowerMockTestListenerbeforeTestMethod in class AbstractPowerMockTestListenerBasetestInstance - The test case instance.method - The test method that is currently executed.arguments - The arguments passed to the test method if any. May be an
empty array but never null.Exception - If something unexpected occurs.public Class<? extends Annotation>[] getMockAnnotations()
getMockAnnotations in interface AnnotationEnablerListenerCopyright © 2025. All rights reserved.