Skip to content

Conversation

@guanxuc
Copy link
Contributor

@guanxuc guanxuc commented Nov 6, 2025

Add tests for McpServerObjectMapperAutoConfiguration

void customizeMcpServerObjectMapper() {
this.contextRunner.withConfiguration(UserConfigurations.of(TestConfig.class)).run(context -> {
assertThat(context).hasSingleBean(ObjectMapper.class);
assertThat(context).hasBean("mcpServerObjectMapper");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing assertion that mcpServerObjectMapper bean is the same bean from TestConfig.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@quaff Thanks for your review! I've updated the code, and please feel free to reach out to me at any time if I have any other problems.

Signed-off-by: guanxu <1510424541@qq.com>
@ericbottard
Copy link
Member

Merged on main as 9b0eaf2 with a slight rewording.

Thanks @guanxuc !

@ericbottard ericbottard closed this Nov 6, 2025
@ericbottard ericbottard added this to the 1.1.0.RC1 milestone Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants