File tree Expand file tree Collapse file tree
mcp-test/src/test/java/io/modelcontextprotocol/spec Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414import io .modelcontextprotocol .json .McpJsonMapper ;
1515import io .modelcontextprotocol .json .TypeRef ;
1616import org .junit .jupiter .api .Test ;
17- import tools .jackson .databind .exc .ValueInstantiationException ;
1817
1918/**
2019 * Verifies that {@link McpSchema.CompleteReference} polymorphic dispatch works via direct
@@ -94,7 +93,7 @@ void completeRequestMissingRefFailsToInstantiate() throws IOException {
9493 Object paramsMap = mapper .readValue (json , Object .class );
9594
9695 assertThatThrownBy (() -> mapper .convertValue (paramsMap , new TypeRef <McpSchema .CompleteRequest >() {
97- })).isInstanceOf ( ValueInstantiationException . class ). hasMessageContaining ("ref must not be null" );
96+ })).hasMessageContaining ("ref must not be null" );
9897
9998 }
10099
You can’t perform that action at this time.
0 commit comments