Closed ARUS2023 closed 1 year ago
ThingManagerTest.firstNonNullThingIsReturned
Unnecessary stubbings are stubbed method calls that were never realized during test execution. Mockito recommends to remove unnecessary stubbings (https://www.javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/exceptions/misusing/UnnecessaryStubbingException.html).
The stubbing is not executed by the test firstNonNullThingIsReturned in the ThingManagerTest.java, therefore we should remove it.
firstNonNullThingIsReturned
ThingManagerTest.java
Summary
ThingManagerTest.firstNonNullThingIsReturned
Problem
Unnecessary stubbings are stubbed method calls that were never realized during test execution. Mockito recommends to remove unnecessary stubbings (https://www.javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/exceptions/misusing/UnnecessaryStubbingException.html).
Solution
The stubbing is not executed by the test
firstNonNullThingIsReturned
in theThingManagerTest.java
, therefore we should remove it.Action