I'm exploring this plugin but seems many of test cases in my project got failed with below error. I'm using @RunWith(MockitoJUnitRunner.class) in almost all of my test cases. Do you know what step I'm missing here?
Problems adding Mockito listener.
Listener of type 'MismatchReportingTestListener' has already been added and not removed.
It indicates that previous listener was not removed according to the API.
When you add a listener, don't forget to remove the listener afterwards:
Mockito.framework().removeListener(myListener);
For more information, see the javadoc for RedundantListenerException class.
Thanks for reporting this issue. The short answer is no. Are you using Maven or Gradle? Could you share a hello world project that reproduces the issue?
I'm exploring this plugin but seems many of test cases in my project got failed with below error. I'm using @RunWith(MockitoJUnitRunner.class) in almost all of my test cases. Do you know what step I'm missing here?