You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mcp-test/src/test/java/io/modelcontextprotocol/client/transport/HttpClientStreamableHttpTransportEmptyResponseTests.java
+59-2Lines changed: 59 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,12 @@
11
11
importstaticorg.mockito.Mockito.verify;
12
12
13
13
importjava.io.IOException;
14
+
importjava.io.OutputStream;
14
15
importjava.net.InetSocketAddress;
15
16
importjava.net.URI;
16
17
importjava.net.URISyntaxException;
18
+
importjava.nio.charset.StandardCharsets;
19
+
importjava.util.Map;
17
20
18
21
importorg.junit.jupiter.api.AfterAll;
19
22
importorg.junit.jupiter.api.BeforeAll;
@@ -29,18 +32,33 @@
29
32
importreactor.test.StepVerifier;
30
33
31
34
/**
32
-
* Handles emplty application/json response with 200 OK status code.
35
+
* Handles 200 OK responses that carry no usable body, either as an empty application/json
36
+
* document or as a text/event-stream containing nothing but a stream primer.
0 commit comments