This is an automated email from the ASF dual-hosted git repository.
mytang0 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new 84bd8f8b4 [ISSUE #3161] Specify Boxed type clearly
new 33617dbfb Merge pull request #3211 from Bannirui/fix-3161
84bd8f8b4 is described below
commit 84bd8f8b418400990f326c3cc35f6d7af833d2ef
Author: dingrui <[email protected]>
AuthorDate: Mon Feb 20 12:52:16 2023 +0800
[ISSUE #3161] Specify Boxed type clearly
---
.../runtime/admin/handler/RedirectClientByPathHandlerTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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 286b1f0fb..87d57b681 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
@@ -101,7 +101,7 @@ public class RedirectClientByPathHandlerTest {
when(mockExchange.getResponseBody()).thenReturn(outputStream);
try (MockedStatic<EventMeshTcp2Client> clientMockedStatic =
Mockito.mockStatic(EventMeshTcp2Client.class)) {
clientMockedStatic.when(() ->
EventMeshTcp2Client.redirectClient2NewEventMesh(any(), anyString(), anyInt(),
any(),
- any())).thenReturn("redirectResult");
+ any())).thenReturn("redirectResult");
redirectClientByPathHandler.handle(mockExchange);
String response =
outputStream.toString(StandardCharsets.UTF_8.name());
Assert.assertTrue(response.startsWith("redirectClientByPath
success!"));
@@ -111,7 +111,7 @@ public class RedirectClientByPathHandlerTest {
outputStream = new ByteArrayOutputStream();
when(mockExchange.getResponseBody()).thenReturn(outputStream);
try (MockedStatic<StringUtils> dummyStatic =
mockStatic(StringUtils.class)) {
- dummyStatic.when(() ->
StringUtils.isBlank(any())).thenReturn(true);
+ dummyStatic.when(() ->
StringUtils.isBlank(any())).thenReturn(Boolean.TRUE);
redirectClientByPathHandler.handle(mockExchange);
String response =
outputStream.toString(StandardCharsets.UTF_8.name());
Assert.assertEquals("params illegal!", response);
@@ -122,7 +122,7 @@ public class RedirectClientByPathHandlerTest {
when(mockExchange.getResponseBody()).thenReturn(outputStream);
try (MockedStatic<EventMeshTcp2Client> clientMockedStatic =
Mockito.mockStatic(EventMeshTcp2Client.class)) {
clientMockedStatic.when(() ->
EventMeshTcp2Client.redirectClient2NewEventMesh(any(), anyString(), anyInt(),
any(),
- any())).thenThrow(new RuntimeException());
+ any())).thenThrow(new RuntimeException());
redirectClientByPathHandler.handle(mockExchange);
String response = outputStream.toString();
Assert.assertTrue(response.startsWith("redirectClientByPath
fail!"));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]