-
Notifications
You must be signed in to change notification settings - Fork 565
Closed
Labels
type: bugA general bugA general bug
Milestone
Description
org.mockito.exceptions.misusing.UnfinishedMockingSessionException:
10:02:02
10:02:02 Unfinished mocking session detected.
10:02:02 Previous MockitoSession was not concluded with 'finishMocking()'.
10:02:02 For examples of correct usage see javadoc for MockitoSession class.
10:02:02 at org.mockito.junit.jupiter.MockitoExtension.beforeEach(MockitoExtension.java:160)
10:02:02 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
10:02:02 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
10:02:02 Suppressed: java.lang.NullPointerException: Cannot invoke "java.util.Set.forEach(java.util.function.Consumer)" because the return value of "org.junit.jupiter.api.extension.ExtensionContext$Store.remove(Object, java.lang.Class)" is null
10:02:02 at org.mockito.junit.jupiter.MockitoExtension.afterEach(MockitoExtension.java:194)
10:02:02 ... 2 more
10:02:02
We should use a manual mocking setup until the issue mockito/mockito#3411 is fixed.
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug