You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JUnit initializes extensions in the order they are declared in @ExtendWith.
So in the test below, initialization should be done in order SetupExtension, MockitoExtension.
This works fine, unless the annotation
@MockitoSettings(strictness = Strictness.LENIENT)
is added which changes this behavior and MockitoExtension is initialized first.
If the annotation is commented out, behavior is as expected.
JUnit initializes extensions in the order they are declared in @ExtendWith.
So in the test below, initialization should be done in order SetupExtension, MockitoExtension.
This works fine, unless the annotation
@MockitoSettings(strictness = Strictness.LENIENT)
is added which changes this behavior and MockitoExtension is initialized first.
If the annotation is commented out, behavior is as expected.
This is probably related to #3254
Versions used:
'org.mockito:mockito-core:5.10.0'
'org.mockito:mockito-junit-jupiter:5.10.0'
'org.junit.jupiter:junit-jupiter:5.10.1'
'org.junit.jupiter:junit-jupiter-engine:5.10.1'
'org.junit.platform:junit-platform-launcher:1.10.0'
The text was updated successfully, but these errors were encountered: