Expose resourcesUpdateConsumer() in sync client (#735)

`resourcesUpdateConsumer()` was missing from the sync client. Add it.
This commit is contained in:
Jordan Zimmerman 2026-01-08 19:29:05 +00:00 • committed by GitHub
commit b518393cfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -535,11 +535,13 @@ public abstract class AbstractMcpSyncClientTests {
AtomicBoolean toolsNotificationReceived = new AtomicBoolean(false);
AtomicBoolean resourcesNotificationReceived = new AtomicBoolean(false);
AtomicBoolean promptsNotificationReceived = new AtomicBoolean(false);
AtomicBoolean resourcesUpdatedNotificationReceived = new AtomicBoolean(false);
withClient(createMcpTransport(),
builder -> builder.toolsChangeConsumer(tools -> toolsNotificationReceived.set(true))
.resourcesChangeConsumer(resources -> resourcesNotificationReceived.set(true))
.promptsChangeConsumer(prompts -> promptsNotificationReceived.set(true)),
.promptsChangeConsumer(prompts -> promptsNotificationReceived.set(true))
.resourcesUpdateConsumer(resources -> resourcesUpdatedNotificationReceived.set(true)),
client -> {
assertThatCode(() -> {