Skip to content

Migrate responseBodyAdvice test to Jackson 3 converter#36920

Open
froggy0m0 wants to merge 1 commit into
spring-projects:mainfrom
froggy0m0:migrate-response-body-advice-jackson-json
Open

Migrate responseBodyAdvice test to Jackson 3 converter#36920
froggy0m0 wants to merge 1 commit into
spring-projects:mainfrom
froggy0m0:migrate-response-body-advice-jackson-json

Conversation

@froggy0m0

Copy link
Copy Markdown
Contributor

Migrate RequestMappingHandlerAdapterTests#responseBodyAdvice from the deprecated MappingJackson2HttpMessageConverter to
JacksonJsonHttpMessageConverter.

The test advice now implements ResponseBodyAdvice directly and returns a map body that is written by the selected converter.

This maintains the test coverage for gh-22638, verifying that a ControllerAdvice implementing both ResponseBodyAdvice and RequestBodyAdvice is not registered twice.

Migrate RequestMappingHandlerAdapterTests#responseBodyAdvice from the
deprecated MappingJackson2HttpMessageConverter to
JacksonJsonHttpMessageConverter.

The test advice now implements ResponseBodyAdvice directly and returns a
map body that is written by the selected converter.

This maintains the test coverage for spring-projectsgh-22638, verifying that a
ControllerAdvice implementing both ResponseBodyAdvice and
RequestBodyAdvice is not registered twice.

Signed-off-by: Sunghyun Shin <froggy0m0a@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants