Expose resourcesUpdateConsumer() in sync client (#735)
`resourcesUpdateConsumer()` was missing from the sync client. Add it.
This commit is contained in:
parent
cb533b2e0e
commit
b518393cfd
1 changed files with 33 additions and 12 deletions
|
|
@ -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(() -> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue