Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error "Listener of type 'MismatchReportingTestListener' has already been added and not removed." #19

Open
SureshG02 opened this issue Dec 17, 2020 · 1 comment
Labels

Comments

@SureshG02
Copy link

SureshG02 commented Dec 17, 2020

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.
@rpau
Copy link
Owner

rpau commented Dec 27, 2020

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?

@rpau rpau added the question label Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants