Skip to content

Commit a507cf2

Browse files
committed
fix typo in WebFluxSseIntegrationTests
Signed-off-by: jitokim <[email protected]>
1 parent bda3cab commit a507cf2

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

mcp-spring/mcp-spring-webflux/src/test/java/io/modelcontextprotocol/WebFluxSseIntegrationTests.java

+13-13
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class WebFluxSseIntegrationTests {
6262

6363
private WebFluxSseServerTransportProvider mcpServerTransportProvider;
6464

65-
ConcurrentHashMap<String, McpClient.SyncSpec> clientBulders = new ConcurrentHashMap<>();
65+
ConcurrentHashMap<String, McpClient.SyncSpec> clientBuilder = new ConcurrentHashMap<>();
6666

6767
@BeforeEach
6868
public void before() {
@@ -77,11 +77,11 @@ public void before() {
7777
ReactorHttpHandlerAdapter adapter = new ReactorHttpHandlerAdapter(httpHandler);
7878
this.httpServer = HttpServer.create().port(PORT).handle(adapter).bindNow();
7979

80-
clientBulders.put("httpclient",
80+
clientBuilder.put("httpclient",
8181
McpClient.sync(HttpClientSseClientTransport.builder("http://localhost:" + PORT)
8282
.sseEndpoint(CUSTOM_SSE_ENDPOINT)
8383
.build()));
84-
clientBulders.put("webflux",
84+
clientBuilder.put("webflux",
8585
McpClient
8686
.sync(WebFluxSseClientTransport.builder(WebClient.builder().baseUrl("http://localhost:" + PORT))
8787
.sseEndpoint(CUSTOM_SSE_ENDPOINT)
@@ -103,7 +103,7 @@ public void after() {
103103
@ValueSource(strings = { "httpclient", "webflux" })
104104
void testCreateMessageWithoutSamplingCapabilities(String clientType) {
105105

106-
var clientBuilder = clientBulders.get(clientType);
106+
var clientBuilder = this.clientBuilder.get(clientType);
107107

108108
McpServerFeatures.AsyncToolSpecification tool = new McpServerFeatures.AsyncToolSpecification(
109109
new McpSchema.Tool("tool1", "tool1 description", emptyJsonSchema), (exchange, request) -> {
@@ -134,7 +134,7 @@ void testCreateMessageWithoutSamplingCapabilities(String clientType) {
134134
void testCreateMessageSuccess(String clientType) throws InterruptedException {
135135

136136
// Client
137-
var clientBuilder = clientBulders.get(clientType);
137+
var clientBuilder = this.clientBuilder.get(clientType);
138138

139139
Function<CreateMessageRequest, CreateMessageResult> samplingHandler = request -> {
140140
assertThat(request.messages()).hasSize(1);
@@ -203,7 +203,7 @@ void testCreateMessageSuccess(String clientType) throws InterruptedException {
203203
@ParameterizedTest(name = "{0} : {displayName} ")
204204
@ValueSource(strings = { "httpclient", "webflux" })
205205
void testRootsSuccess(String clientType) {
206-
var clientBuilder = clientBulders.get(clientType);
206+
var clientBuilder = this.clientBuilder.get(clientType);
207207

208208
List<Root> roots = List.of(new Root("uri1://", "root1"), new Root("uri2://", "root2"));
209209

@@ -250,7 +250,7 @@ void testRootsSuccess(String clientType) {
250250
@ValueSource(strings = { "httpclient", "webflux" })
251251
void testRootsWithoutCapability(String clientType) {
252252

253-
var clientBuilder = clientBulders.get(clientType);
253+
var clientBuilder = this.clientBuilder.get(clientType);
254254

255255
McpServerFeatures.SyncToolSpecification tool = new McpServerFeatures.SyncToolSpecification(
256256
new McpSchema.Tool("tool1", "tool1 description", emptyJsonSchema), (exchange, request) -> {
@@ -284,7 +284,7 @@ void testRootsWithoutCapability(String clientType) {
284284
@ParameterizedTest(name = "{0} : {displayName} ")
285285
@ValueSource(strings = { "httpclient", "webflux" })
286286
void testRootsNotifciationWithEmptyRootsList(String clientType) {
287-
var clientBuilder = clientBulders.get(clientType);
287+
var clientBuilder = this.clientBuilder.get(clientType);
288288

289289
AtomicReference<List<Root>> rootsRef = new AtomicReference<>();
290290
var mcpServer = McpServer.sync(mcpServerTransportProvider)
@@ -311,7 +311,7 @@ void testRootsNotifciationWithEmptyRootsList(String clientType) {
311311
@ParameterizedTest(name = "{0} : {displayName} ")
312312
@ValueSource(strings = { "httpclient", "webflux" })
313313
void testRootsWithMultipleHandlers(String clientType) {
314-
var clientBuilder = clientBulders.get(clientType);
314+
var clientBuilder = this.clientBuilder.get(clientType);
315315

316316
List<Root> roots = List.of(new Root("uri1://", "root1"));
317317

@@ -345,7 +345,7 @@ void testRootsWithMultipleHandlers(String clientType) {
345345
@ValueSource(strings = { "httpclient", "webflux" })
346346
void testRootsServerCloseWithActiveSubscription(String clientType) {
347347

348-
var clientBuilder = clientBulders.get(clientType);
348+
var clientBuilder = this.clientBuilder.get(clientType);
349349

350350
List<Root> roots = List.of(new Root("uri1://", "root1"));
351351

@@ -390,7 +390,7 @@ void testRootsServerCloseWithActiveSubscription(String clientType) {
390390
@ValueSource(strings = { "httpclient", "webflux" })
391391
void testToolCallSuccess(String clientType) {
392392

393-
var clientBuilder = clientBulders.get(clientType);
393+
var clientBuilder = this.clientBuilder.get(clientType);
394394

395395
var callResponse = new McpSchema.CallToolResult(List.of(new McpSchema.TextContent("CALL RESPONSE")), null);
396396
McpServerFeatures.SyncToolSpecification tool1 = new McpServerFeatures.SyncToolSpecification(
@@ -430,7 +430,7 @@ void testToolCallSuccess(String clientType) {
430430
@ValueSource(strings = { "httpclient", "webflux" })
431431
void testToolListChangeHandlingSuccess(String clientType) {
432432

433-
var clientBuilder = clientBulders.get(clientType);
433+
var clientBuilder = this.clientBuilder.get(clientType);
434434

435435
var callResponse = new McpSchema.CallToolResult(List.of(new McpSchema.TextContent("CALL RESPONSE")), null);
436436
McpServerFeatures.SyncToolSpecification tool1 = new McpServerFeatures.SyncToolSpecification(
@@ -500,7 +500,7 @@ void testToolListChangeHandlingSuccess(String clientType) {
500500
@ValueSource(strings = { "httpclient", "webflux" })
501501
void testInitialize(String clientType) {
502502

503-
var clientBuilder = clientBulders.get(clientType);
503+
var clientBuilder = this.clientBuilder.get(clientType);
504504

505505
var mcpServer = McpServer.sync(mcpServerTransportProvider).build();
506506

0 commit comments

Comments
 (0)