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