Skip to content

Commit 04c476f

Browse files
committed
Fix test data to use consistent script names
Use natural script names (한글, 漢字) and a common accented word (café) for UTF-8 encoding test data.
1 parent f792d4d commit 04c476f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp-test/src/test/java/io/modelcontextprotocol/server/transport/StdioServerTransportProviderTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void shouldHandleIncomingMessages() throws Exception {
139139
@SuppressWarnings("unchecked")
140140
void shouldHandleUtf8EncodedMessages() throws Exception {
141141

142-
String utf8Content = "한글 테스트 🎉 café 日本語";
142+
String utf8Content = "한글 漢字 café 🎉";
143143
String jsonMessage = "{\"jsonrpc\":\"2.0\",\"method\":\"test\"," + "\"params\":{\"message\":\"" + utf8Content
144144
+ "\"},\"id\":1}\n";
145145
InputStream stream = new ByteArrayInputStream(jsonMessage.getBytes(StandardCharsets.UTF_8));

0 commit comments

Comments
 (0)