Commit 4aeeb1f8 authored by Christian Tzolov's avatar Christian Tzolov
Browse files

refactor: make listRoots() return unmodifiable list and add comprehensive tests



- Refactor McpAsyncServerExchange.listRoots() to return Collections.unmodifiableList
- Fix typo in variable name (allRootssResult -> allRootsResult)
- Improve code formatting and readability with ternary operator
- Add comprehensive test suite for McpAsyncServerExchange covering:
  - listRoots() pagination scenarios and edge cases
  - Logging notification with level filtering
  - Elicitation creation with various capabilities
  - Message creation with sampling capabilities
  - Error handling and validation scenarios

Signed-off-by: default avatarChristian Tzolov <christian.tzolov@broadcom.com>
parent 555c16ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment