Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@SureshG02

Description

@SureshG02

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions