Different mocks are used for @Mock and @InjectMock in the same test class with JUnit 5 extension when using SpringExtension.class
along with MockitoExtension.class
#1912
Labels
Yes I am also facing this issue. Mine is also exactly the same scenario. Below are my dependencies,
org.junit.jupiter:junit-jupiter-engine:5.6.0
org.springframework.boot:spring-boot-starter:2.2.6.RELEASE
org.springframework.boot:spring-boot-starter-test:2.2.6.RELEASE
org.mockito:mockito-junit-jupiter:3.1.0
Originally posted by @karthikaiselvan in #1346 (comment)
The text was updated successfully, but these errors were encountered: