Skip to content

MockMvcTester and @ControllerAdvice #34127

@HenrikPublic

Description

@HenrikPublic

I'm trying to replace some of our MockMvc controller tests using MockMvcTester.
With MockMvc, the @ControllerAdvice were picked up and used. For stand-alone you can .setControllerAdvice.

Using MockMvcTester, the @ControllerAdvice is not picked up, and I don't see a way to configure one.
Is that on purpose?
Or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: testIssues in the test modulestatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions