I am mocking a object using @Mock annotation
@Mock
Customer customer;
but the @Mock annotation is showing warning
The type MockitoAnnotations.Mock is deprecated
and my test case is failed
You are using the wrong mock. Try using the below one
org.mockito.Mock instead of org.mockito.MockitoAnnotations.Mock
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With