Package io.quarkus.test.junit.mockito
Annotation Interface MockitoConfig
This annotation can be used to configure a Mockito mock injected in a field of a test class that is annotated with
InjectMock. This annotation is only supported in a io.quarkus.test.QuarkusTest.- See Also:
-
InjectMock
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIf true, then Quarkus will change the scope of the targetSingletonbean toApplicationScopedto make it mockable.booleanIf true, the mock will be created with theMockito.RETURNS_DEEP_STUBS
-
Element Details
-
convertScopes
boolean convertScopesIf true, then Quarkus will change the scope of the targetSingletonbean toApplicationScopedto make it mockable.This is an advanced setting and should only be used if you don't rely on the differences between
SingletonandApplicationScopedbeans (for example it is invalid to read fields ofApplicationScopedbeans as a proxy stands in place of the actual implementation)- Default:
- false
-
returnsDeepMocks
boolean returnsDeepMocksIf true, the mock will be created with theMockito.RETURNS_DEEP_STUBS- Default:
- false
-