Commit f4be7ca
committed
refactor: extract common integration test logic into abstract base classes
- Move duplicated test methods from WebFlux and WebMvc integration test classes to abstract base classes
- WebFluxSseIntegrationTests, WebFluxStreamableIntegrationTests now extend AbstractMcpClientServerIntegrationTests
- WebFluxStatelessIntegrationTests, WebMvcStatelessIntegrationTests now extend AbstractStatelessIntegrationTests
- Each concrete test class now only implements transport-specific setup methods (prepareClients, prepareAsyncServerBuilder, prepareSyncServerBuilder)
- Eliminates ~1300+ lines of duplicated test code across multiple files
- Improves maintainability by centralizing test logic in reusable base classes
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>1 parent 1edd1b6 commit f4be7ca
File tree
7 files changed
+678
-3364
lines changed- mcp-spring
- mcp-spring-webflux/src/test/java/io/modelcontextprotocol
- mcp-spring-webmvc/src/test/java/io/modelcontextprotocol/server
- mcp-test/src/main/java/io/modelcontextprotocol
- mcp/src/test/java/io/modelcontextprotocol/server
7 files changed
+678
-3364
lines changed
0 commit comments