org.mockito.exceptions.misusing.UnnecessaryStubbingException: Unnecessary stubbings detected in test class: MockitoProblem Clean & maintainable test code requires zero unnecessary code. Following stubbings are unnecessary (click to navigate to relevant line of code):

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 873#271582444
    via GitHub by gysel
    ,
    • org.mockito.exceptions.misusing.UnnecessaryStubbingException: Unnecessary stubbings detected in test class: MockitoProblem Clean & maintainable test code requires zero unnecessary code. Following stubbings are unnecessary (click to navigate to relevant line of code): at ch.mgysel.mockito.MainComponent.<init>(MainComponent.java:10)
    No Bugmate found.