snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Add support for deep stubbing in @InjectMock #369

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

Description

It would be very nice to have support for https://www.javadoc.io/doc/org.mockito/mockito-core/2.13.0/org/mockito/Mockito.html#RETURNS_DEEP_STUBS for bean injected with the @InjectMock.

Implementation ideas

This could be implemented as a new parameter in the @InjectMock annotation, like deepStubs. Default value would be false.


https://github.com/quarkusio/quarkus/issues/18236


$upstream:18236$