I'm using the latest version of quarkus (3.4 at this moment) and as usual I used the following dependency:
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5-mockito</artifactId>
<scope>test</scope>
</dependency>
When I imported it I had this issue, it is deprecated from version 3.2 of Quarkus.
And now how to mock ?
I tried using mockito but in new versions of quarkus it is deprecated. I hope I can mock it somehow without using something deprecated.
I found a way. I'm not using something deprecated.
Mocking with QuarkusMock
My example:
In this example ExtensionsService is the rest client.
For more information: Quarkus documentation