Skip to content

Conversation

@alxkm
Copy link
Contributor

@alxkm alxkm commented Aug 5, 2025

Enhanced test coverage for McpClientAutoConfigurationRuntimeHintsTests

Added comprehensive test cases to improve coverage of the McpClientAutoConfigurationRuntimeHints class:

  • Test infrastructure: Added @BeforeEach setup and extracted constants for better maintainability
  • Idempotency testing: Verifies multiple registration calls don't create duplicates for both reflection and resource hints
  • Member category validation: Ensures all MemberCategory values are registered for MCP client types
  • Resource pattern verification: Tests for JSON resource pattern registration and persistence
  • Nested class validation: Specific tests for McpStdioClientProperties.Parameters registration
  • ClassLoader scenarios: Tests with null ClassLoader for typical Spring Boot usage

These additions ensure robust AOT hint registration behavior for MCP client auto-configuration, particularly focusing on JSON resource access and reflection hints required for native compilation.

@alxkm alxkm changed the title test: Enhanced test coverage for McpClientAutoConfigurationRuntimeHintsTests test: Enhanced test coverage for McpClientAutoConfigurationRuntimeHintsTests Aug 5, 2025
@sobychacko
Copy link
Contributor

Merged via 0ba1546.

@sobychacko sobychacko closed this Aug 5, 2025
@sobychacko sobychacko added this to the 1.1.0.M1 milestone Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants