Skip to content

@MockitoBean should allow a custom answer #34956

Open
@adrian-tarau

Description

@adrian-tarau

Currently, there is no way to request a few mocks, provide answers (to share common setups), and automatically inject these mocks where needed.

@MockitoBean should have a property called answer, of type Class<? extends Answer>, and use the class (create an instance) when a mock is created in MockitoBeanOverrideHandler.createMock.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions