MockitoAnnotations.Mock
Date: 2015-09-18

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.