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 d9448c3a01 Stabilize RestProtocolTest.groovy in dubbo-plugin
rest-jaxrs and rest-spring (#15849)
d9448c3a01 is described below
commit d9448c3a014f702129c295aa5037fbac58076902
Author: Anshul Bisht <[email protected]>
AuthorDate: Thu Dec 18 01:25:10 2025 -0600
Stabilize RestProtocolTest.groovy in dubbo-plugin rest-jaxrs and
rest-spring (#15849)
---
.../dubbo/rpc/protocol/tri/rest/support/jaxrs/RestProtocolTest.groovy | 3 ++-
.../dubbo/rpc/protocol/tri/rest/support/spring/RestProtocolTest.groovy | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git
a/dubbo-plugin/dubbo-rest-jaxrs/src/test/groovy/org/apache/dubbo/rpc/protocol/tri/rest/support/jaxrs/RestProtocolTest.groovy
b/dubbo-plugin/dubbo-rest-jaxrs/src/test/groovy/org/apache/dubbo/rpc/protocol/tri/rest/support/jaxrs/RestProtocolTest.groovy
index 7e39ccb2de..4ba1e32d69 100644
---
a/dubbo-plugin/dubbo-rest-jaxrs/src/test/groovy/org/apache/dubbo/rpc/protocol/tri/rest/support/jaxrs/RestProtocolTest.groovy
+++
b/dubbo-plugin/dubbo-rest-jaxrs/src/test/groovy/org/apache/dubbo/rpc/protocol/tri/rest/support/jaxrs/RestProtocolTest.groovy
@@ -83,7 +83,8 @@ class RestProtocolTest extends BaseServiceTest {
contentType: MediaType.APPLICATION_FROM_URLENCODED,
body: body
)
- runner.post(request) == output
+ def actual = runner.post(request)
+ actual.contains('"name":[1,2]') && actual.contains('"age":[8]')
where:
path | body | output
'/multivaluedMapTest' | 'name=1&name=2&age=8' |
'{"name":[1,2],"age":[8]}'
diff --git
a/dubbo-plugin/dubbo-rest-spring/src/test/groovy/org/apache/dubbo/rpc/protocol/tri/rest/support/spring/RestProtocolTest.groovy
b/dubbo-plugin/dubbo-rest-spring/src/test/groovy/org/apache/dubbo/rpc/protocol/tri/rest/support/spring/RestProtocolTest.groovy
index f9115515cf..ec7a111ba0 100644
---
a/dubbo-plugin/dubbo-rest-spring/src/test/groovy/org/apache/dubbo/rpc/protocol/tri/rest/support/spring/RestProtocolTest.groovy
+++
b/dubbo-plugin/dubbo-rest-spring/src/test/groovy/org/apache/dubbo/rpc/protocol/tri/rest/support/spring/RestProtocolTest.groovy
@@ -52,7 +52,8 @@ class RestProtocolTest extends BaseServiceTest {
def "map argument body test"() {
expect:
- runner.post(path, body) contains output
+ def actual = runner.post(path, body)
+ actual.contains('1:[2,3]') && actual.contains('4:[5,6]')
where:
path | body |
output
'/spring/mapArgBodyTest?age=2' | '{"1":["2",3],"4":[5,"6"]}' |
'{4:[5,6],1:[2,3]}'