Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.mockito
Annotation Type MockitoAnnotations.Mock

Deprecated.

    @Target(value=FIELD)
    @Retention(value=RUNTIME)
    @Deprecated
    public static @interface MockitoAnnotations.Mock

Use top-level `Mock` annotation instead

When @Mock annotation was implemented as an inner class then users experienced problems with autocomplete features in IDEs. Hence @Mock was made a top-level class.

How to fix deprecation warnings? Typically, you can just search: import org.mockito.MockitoAnnotations.Mock; and replace with: import org.mockito.Mock;

If you're an existing user then sorry for making your code littered with deprecation warnings. This change was required to make Mockito better.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT