Skip to content

Default value of StandaloneMockMvcBuilder.useSuffixPatternMatch differs from the same property in RequestMappingHandlerMapping #27030

@perlan

Description

@perlan

After upgrading to spring framework 5.3(5.3.7) the useSuffixPatternMatch default value in RequestMappingHandlerMapping was finally changed to false according to #23915 (comment) but the default value of useSuffixPatternMatch in StandaloneMockMvcBuilder is still set to true, forcing test cases to explicitly call the deprecated setUseSuffixPatternMatch method of StandaloneMockMvcBuilder to match the default behavior in RequestMappingHandlerMapping. I was expecting that StandaloneMockMvcBuilder should have the same behavior as RequestMappingHandlerMapping and also like to avoid calling deprecated methods in my code.

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions