Method and Description |
---|
org.mockito.MockitoAnnotations.initMocks(Object)
Use
MockitoAnnotations.openMocks(Object) instead.
This method is equivalent to openMocks(testClass).close() .
The close method should however only be called after completed usage of testClass .
If using static-mocks or custom MockMaker s, using this method might
cause misbehavior of mocks injected into the test class. |