Describe the bug
After adding quarkus-junit5-mockito dependency, tests start to fail with Cannot mock/spy class error
Expected behavior
Test should work
Actual behavior
Tests fail
How to Reproduce?
con-testing.tar.gz
- Run
./mvnw quarkus:dev and press r to start testing
- Tests are failing
- When
quarkus-junit5-mockito is removed with the test using @InjectMock, the failing tests become green
Output of uname -a or ver
No response
Output of java -version
openjdk version "21.0.1" 2023-10-17 LTS Corretto-21.0.1.12.1 (build 21.0.1+12-LTS)
Quarkus version or git rev
5.6.4
Build tool (ie. output of mvnw --version or gradlew --version)
Apache Maven 3.9.6
Additional information
No response
Describe the bug
After adding
quarkus-junit5-mockitodependency, tests start to fail withCannot mock/spy classerrorExpected behavior
Test should work
Actual behavior
Tests fail
How to Reproduce?
con-testing.tar.gz
./mvnw quarkus:devand pressrto start testingquarkus-junit5-mockitois removed with the test using@InjectMock, the failing tests become greenOutput of
uname -aorverNo response
Output of
java -versionopenjdk version "21.0.1" 2023-10-17 LTS Corretto-21.0.1.12.1 (build 21.0.1+12-LTS)
Quarkus version or git rev
5.6.4
Build tool (ie. output of
mvnw --versionorgradlew --version)Apache Maven 3.9.6
Additional information
No response