Annotation Interface MockBean
A field annotated with @MockBean will be mocked by Mockito
and injected in every place it is referenced.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionorg.mockito.Answers
TheAnswers
type to use on the mock.
-
Element Details
-
answer
org.mockito.Answers answerTheAnswers
type to use on the mock. Defaults toAnswers.RETURNS_DEFAULTS
- Returns:
- the answer type
- Default:
RETURNS_DEFAULTS
-