You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ea...@apache.org on 2025/12/18 07:26:39 UTC
(dubbo) branch 3.3 updated: Stabilize dubbo-compatible test in generic/GenericServiceTest.java (#15848)
This is an automated email from the ASF dual-hosted git repository.
earthchen pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.3 by this push:
new 49ecb04185 Stabilize dubbo-compatible test in generic/GenericServiceTest.java (#15848)
49ecb04185 is described below
commit 49ecb041859e2a212f62aa06e705587bf8da1c15
Author: Anshul Bisht <85...@users.noreply.github.com>
AuthorDate: Thu Dec 18 01:26:34 2025 -0600
Stabilize dubbo-compatible test in generic/GenericServiceTest.java (#15848)
---
.../java/org/apache/dubbo/generic/GenericServiceTest.java | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/dubbo-compatible/src/test/java/org/apache/dubbo/generic/GenericServiceTest.java b/dubbo-compatible/src/test/java/org/apache/dubbo/generic/GenericServiceTest.java
index 65200169ac..c5446591ff 100644
--- a/dubbo-compatible/src/test/java/org/apache/dubbo/generic/GenericServiceTest.java
+++ b/dubbo-compatible/src/test/java/org/apache/dubbo/generic/GenericServiceTest.java
@@ -154,13 +154,21 @@ class GenericServiceTest {
GenericService client = proxyFactory.getProxy(invoker, true);
Object result = client.$invoke(
methodDefinition.getName(), methodDefinition.getParameterTypes(), new Object[] {"haha", mapObject});
- Assertions.assertEquals("haha###" + complexObject.toString(), result);
+
+ String r1 = (String) result;
+ Assertions.assertTrue(r1.startsWith("haha###"));
+ Assertions.assertTrue(r1.contains("v1_k1=v1_v1"));
+ Assertions.assertTrue(r1.contains("v1_k2=v1_v2"));
Invoker<DemoService> invoker2 = protocol.refer(DemoService.class, url);
GenericService client2 = (GenericService) proxyFactory.getProxy(invoker2, true);
Object result2 = client2.$invoke(
"complexCompute", methodDefinition.getParameterTypes(), new Object[] {"haha2", mapObject});
- Assertions.assertEquals("haha2###" + complexObject.toString(), result2);
+
+ String r2 = (String) result2;
+ Assertions.assertTrue(r2.startsWith("haha2###"));
+ Assertions.assertTrue(r2.contains("v1_k1=v1_v1"));
+ Assertions.assertTrue(r2.contains("v1_k2=v1_v2"));
invoker.destroy();
exporter.unexport();