-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quarkus 3 : mockito-inline don't work anymore after upgrade #32952
Comments
/cc @maxandersen (jbang), @quarkusio/devtools (jbang) |
Please try removing the mockito-inline dependency from your project. |
It looks like Quarkus 3.0.1 is not using the latest 5.3.1 Mockito version, but still Mockito version 5.2.0. Could that perhaps have to do with the issue related to the mockito-inline dependency? |
You are right. I was mislead by #32554 (which did not touch the BOM).
This commit says it all: ed74dd7 I'll let @geoand take it from here. |
PS: You can work around this by adding the following exclusion to
and then add a dependency to |
@gsmet looks like @geoand is not around (?), so I'm asking you: Should we add something to the migration guide?
|
Yup, out for team meetings most of the week. I'm gonna have a lot of catching up next week... |
@famod does upgrading to Mockito 5.3 somehow fix the issue? If so, maybe we should do it in 3.0.2.Final. |
@gsmet no, it doesn't. |
@famod yeah so please let's add something to the migration guide. And we should probably stay away from upgrading Mockito to 5.3 then. |
TBH, I personally would bring the mockito deps in sync already in 3.0.2 (5.3.1 everywhere including the BOM) but as you suggested I'll remove the backport label from #33037. |
Should this be closed? 🙂 |
Describe the bug
After upgrading a project with :
curl -Ls https://sh.jbang.dev | bash -s - --fresh upgrade-to-quarkus3@quarkusio
Junit tests containing static mocks don't work anymore.
Same issue with new project initialized with Quarkus 3.
I am using uk.org.webcompere:system-stubs-core and uk.org.webcompere:system-stubs-core to mock environment variables.
You can pull my repo to reproduce :
https://github.com/fmarissel/quarkus3-mockito-inline
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
https://github.com/fmarissel/quarkus3-mockito-inline
Output of
uname -a
orver
Darwin FRL-HJ6N529V4W 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000 arm64
Output of
java -version
17
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.0.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)3.9.1
Additional information
No response
The text was updated successfully, but these errors were encountered: