-
Methods Method Description org.mockito.MockitoAnnotations.initMocks(Object) UseMockitoAnnotations.openMocks(Object)instead. This method is equivalent toopenMocks(testClass).close(). The close method should however only be called after completed usage oftestClass. If using static-mocks or customMockMakers, using this method might cause misbehavior of mocks injected into the test class.