Skip to content

Preserve Mockito's subclass behavior #31627

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

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Preserve Mockito's subclass behavior #31627

merged 1 commit into from
Mar 6, 2023

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Mar 6, 2023

With Mockito 5, the library has switched to using inline mocks by default.

We almost certainly can support this, but it needs more investigation (one point for example
that jumps out from #31251 is that we need to see when it makes sense to clear inline mocks).

For the time being it makes sense to preserve the mocking behavior users are used to since Quarkus 1.x.

Closes: #31251

With Mockito 5, the library has switched to using
inline mocks by default.
We almost certainly can support this, but it needs
more investigation.
For the time being it makes sense to preserve the
mocking behavior users are used to since Quarkus 1.x

Closes: quarkusio#31251
@geoand geoand requested a review from gsmet March 6, 2023 13:12
@quarkus-bot
Copy link

quarkus-bot bot commented Mar 6, 2023

✔️ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@gsmet gsmet merged commit fdd65c4 into quarkusio:main Mar 6, 2023
@quarkus-bot quarkus-bot bot added this to the 3.0 - main milestone Mar 6, 2023
@gsmet
Copy link
Member

gsmet commented Mar 6, 2023

thanks!

@geoand geoand deleted the #31251 branch March 6, 2023 14:06
@geoand
Copy link
Contributor Author

geoand commented Mar 6, 2023

🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quarkus 3, memory leak, NotAMockException when using mockito clearInlineMocks
2 participants