This is an automated email from the ASF dual-hosted git repository.
mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new bd63fbf34 [Issue #3159] Found reliance on default encoding
[RedirectClientByPathHandlerTest]
new 3fed5a69e Merge pull request #3692 from devCod3r/develop
bd63fbf34 is described below
commit bd63fbf343438db219b33603b28fac940ccf36c7
Author: Sam V Jose <[email protected]>
AuthorDate: Tue Apr 11 07:54:10 2023 +0530
[Issue #3159] Found reliance on default encoding
[RedirectClientByPathHandlerTest]
---
.../runtime/admin/handler/RedirectClientByPathHandlerTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/admin/handler/RedirectClientByPathHandlerTest.java
b/eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/admin/handler/RedirectClientByPathHandlerTest.java
index deb15b44e..c2721423f 100644
---
a/eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/admin/handler/RedirectClientByPathHandlerTest.java
+++
b/eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/admin/handler/RedirectClientByPathHandlerTest.java
@@ -26,6 +26,7 @@ import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.mockStatic;
import static org.mockito.Mockito.when;
+import org.apache.eventmesh.common.Constants;
import org.apache.eventmesh.common.protocol.tcp.UserAgent;
import org.apache.eventmesh.common.utils.NetUtils;
import org.apache.eventmesh.runtime.admin.controller.HttpHandlerManager;
@@ -124,7 +125,7 @@ public class RedirectClientByPathHandlerTest {
clientMockedStatic.when(() ->
EventMeshTcp2Client.redirectClient2NewEventMesh(any(), anyString(), anyInt(),
any(),
any())).thenThrow(new RuntimeException());
redirectClientByPathHandler.handle(mockExchange);
- String response = outputStream.toString();
+ String response =
outputStream.toString(Constants.DEFAULT_CHARSET.name());
Assert.assertTrue(response.startsWith("redirectClientByPath
fail!"));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]